uechi.io/Dockerfile

20 lines
493 B
Docker
Raw Normal View History

2021-10-27 15:53:06 +09:00
FROM node:15 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-10-27 15:53:06 +09:00
COPY package.json yarn.lock /app/
RUN yarn install --frozen-lockfile
2021-06-14 02:24:52 +09:00
2021-06-08 17:30:30 +09:00
COPY themes /app/themes
COPY source /app/source
COPY _config.yml /app/
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
2021-10-27 15:53:06 +09:00
COPY --from=build /app/public /var/www/html/