添加 Dockerfile-dev
This commit is contained in:
16
Dockerfile-dev
Normal file
16
Dockerfile-dev
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
FROM node:20-alpine AS build
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package.json package-lock.json ./
|
||||||
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build:h5
|
||||||
|
|
||||||
|
|
||||||
|
FROM nginx:stable-alpine AS production
|
||||||
|
|
||||||
|
COPY --from=build /app/dist/build/h5 /usr/share/nginx/html
|
||||||
|
COPY nginx.dev.conf /etc/nginx/conf.d/default.conf
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
Reference in New Issue
Block a user