🐳 new Dockerfile
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,6 +1,12 @@
|
||||
FROM node:15.4.0-alpine3.12
|
||||
WORKDIR /app
|
||||
RUN npm i -g pnpm
|
||||
COPY package.json index.html ./
|
||||
RUN pnpm i
|
||||
COPY src ./src
|
||||
COPY public ./public
|
||||
RUN pnpm run build
|
||||
# final image
|
||||
FROM fholzer/nginx-brotli:v1.19.1
|
||||
ENV APP_CONF="config={}"
|
||||
# TODO: buildstep
|
||||
COPY ./dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf.template
|
||||
# COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=0 /app/dist /usr/share/nginx/html
|
||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||
Reference in New Issue
Block a user