chore: fix ci

This commit is contained in:
2021-10-27 15:53:06 +09:00
parent d807a0407f
commit 6176227dfa
4 changed files with 62 additions and 86 deletions

View File

@@ -1,14 +1,12 @@
FROM node:15 as deps
FROM node:15 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 package.json /app
RUN yarn install
FROM deps as build
COPY package.json yarn.lock /app/
RUN yarn install --frozen-lockfile
COPY themes /app/themes
COPY source /app/source
@@ -18,4 +16,4 @@ RUN yarn build
FROM nginx:stable-alpine as runtime
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/public /var/www/html/
COPY --from=build /app/public /var/www/html/