Simplify docker to only use nginx
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
**/node_modules
|
**/node_modules
|
||||||
**/dist
|
|
||||||
|
|||||||
+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
|
FROM nginx as production-stage
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
COPY --from=build-stage /app/dist /app
|
COPY /public /app
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user