uechi.io/Dockerfile
Yasuaki Uechi 9a9c2343d1
All checks were successful
continuous-integration/drone/push Build is passing
complete revamps
2022-12-24 03:20:02 +09:00

22 lines
486 B
Docker

FROM node:16 as build
# https://github.com/jgm/pandoc/releases
RUN curl -LO https://github.com/jgm/pandoc/releases/download/2.14.0.1/pandoc-2.14.0.1-1-amd64.deb
RUN dpkg -i pandoc-2.14.0.1-1-amd64.deb
WORKDIR /app
COPY plugins plugins
COPY package.json package-lock.json ./
RUN npm ci
COPY themes themes
COPY source source
COPY _config.yml ./
RUN npm run build
FROM nginx:stable-alpine as runtime
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/public /var/www/html/