Implemented basics for deployment via docker
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user