Adicionar Dockerfile e .dockerignore para deploy

This commit is contained in:
Frederico Castro
2026-02-27 21:26:45 -03:00
parent a2a1aa2c7a
commit 64389b3cf9
2 changed files with 14 additions and 0 deletions

4
.dockerignore Normal file
View File

@@ -0,0 +1,4 @@
node_modules
.git
.env
*.log

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
RUN mkdir -p data
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
CMD ["node", "server.js"]