11 lines
299 B
Docker
11 lines
299 B
Docker
FROM node:15.5.1-alpine3.12 AS build
|
|
WORKDIR /app
|
|
RUN npm i -g pnpm
|
|
COPY package.json ./
|
|
RUN pnpm i
|
|
COPY . ./
|
|
RUN pnpm run build
|
|
# final image
|
|
FROM fholzer/nginx-brotli:v1.19.1 AS final
|
|
COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html
|
|
COPY ./nginx.conf /etc/nginx/nginx.conf |