uechi.io/Dockerfile

21 lines
478 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-06-22 15:17:37 +09:00
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY themes themes
COPY source source
COPY _config.yml ./
2021-06-08 17:30:30 +09:00
RUN yarn 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/