Initial commit
This commit is contained in:
14
api/Dockerfile
Normal file
14
api/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM node:20-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# Instala dependências
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm install --production || npm install --production --no-audit --no-fund
|
||||
|
||||
# Copia código
|
||||
COPY src ./src
|
||||
|
||||
ENV PORT=3000
|
||||
EXPOSE 3000
|
||||
CMD ["npm", "start"]
|
||||
|
||||
Reference in New Issue
Block a user