工具生成版本
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
FROM node:18-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json /app/
|
||||
|
||||
RUN yarn
|
||||
COPY . /app
|
||||
|
||||
RUN yarn build:prod
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY dynamic-env.json /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY --from=build /app/dist/Demo /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user