uechi.io/Dockerfile

22 lines
486 B
Docker
Raw Normal View History

2022-06-22 15:17:37 +09:00
FROM node:16 as build
2021-06-08 16:50:52 +09:00
2021-06-08 17:30:30 +09:00
# 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
2021-06-14 02:24:52 +09:00
2022-12-24 03:20:02 +09:00
COPY plugins plugins
COPY package.json package-lock.json ./
RUN npm ci
2022-06-22 15:17:37 +09:00
COPY themes themes
COPY source source
COPY _config.yml ./
2022-12-24 03:20:02 +09:00
RUN npm run build
2021-06-08 16:50:52 +09:00
2021-06-08 17:30:30 +09:00
FROM nginx:stable-alpine as runtime
COPY nginx.conf /etc/nginx/nginx.conf
2022-06-22 15:17:37 +09:00
COPY --from=build /app/public /var/www/html/