master
Zhang Chaojie 2023-10-31 17:53:38 +08:00
parent 61902a2af4
commit d2d349c6b6
2 changed files with 14 additions and 0 deletions

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
version: "3.8"
services:
inesa-demo:
build: .
ports:
- 0:80

8
dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM node:18 AS node
WORKDIR /app
ADD . .
RUN npm install && npm run build
FROM nginx
COPY --from=node /app/dist /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]