This commit is contained in:
Murilo Henrique Ghignatti 2023-08-29 14:11:54 +02:00 committed by GitHub
commit c41d2696f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

9
client/Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM node:current-alpine
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
EXPOSE 80
CMD [ "npm", "run", "build" ]

12
server/Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM node:current-alpine
WORKDIR /server
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
EXPOSE 8080
CMD [ "node", "build/server.js" ]