Deploy web #3
2 changed files with 15 additions and 0 deletions
1
web/.dockerignore
Normal file
1
web/.dockerignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
**/node_modules/**
|
||||
14
web/Dockerfile
Normal file
14
web/Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
COPY package-lock.json ./
|
||||
COPY . ./web
|
||||
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
EXPOSE 8080
|
||||
EXPOSE 5172
|
||||
CMD ["npm", "run", "dev"]
|
||||
Loading…
Reference in a new issue