synchronization
This commit is contained in:
16
Docker/Dockerfile/Nginx/Dockerfile-node
Normal file
16
Docker/Dockerfile/Nginx/Dockerfile-node
Normal file
@@ -0,0 +1,16 @@
|
||||
# 多阶段构建
|
||||
FROM node:14 as build
|
||||
|
||||
COPY . /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm config set registry https://registry.npmmirror.com \
|
||||
&& npm install \
|
||||
&& npm run build:prod
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=build /app/dist /app/www
|
||||
|
||||
COPY ./web.conf /etc/nginx/conf.d/default.conf
|
Reference in New Issue
Block a user