|
@@ -1,14 +1,6 @@
|
|
|
-FROM node:lts-alpine3.14 as build-stage
|
|
|
|
|
-
|
|
|
|
|
-WORKDIR /app
|
|
|
|
|
-COPY package.json /app/
|
|
|
|
|
-RUN npm install --registry=https://repo.huaweicloud.com/repository/npm/
|
|
|
|
|
-COPY . /app/
|
|
|
|
|
-RUN npm run build
|
|
|
|
|
-
|
|
|
|
|
FROM nginx:alpine
|
|
FROM nginx:alpine
|
|
|
WORKDIR /app
|
|
WORKDIR /app
|
|
|
-COPY --from=build-stage /app/dist /app
|
|
|
|
|
|
|
+COPY dist /app
|
|
|
COPY nginx/nginx.conf /etc/nginx/
|
|
COPY nginx/nginx.conf /etc/nginx/
|
|
|
COPY nginx/conf.d/default.conf /etc/nginx/conf.d
|
|
COPY nginx/conf.d/default.conf /etc/nginx/conf.d
|
|
|
|
|
|