Simplify docker to only use nginx
This commit is contained in:
+1
-8
@@ -1,11 +1,4 @@
|
||||
FROM node:latest as build-stage
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY ./ .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx as production-stage
|
||||
RUN mkdir /app
|
||||
COPY --from=build-stage /app/dist /app
|
||||
COPY /public /app
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
Reference in New Issue
Block a user