Update Dockerfile

This commit is contained in:
2025-12-07 00:30:14 +01:00
committed by GitHub
parent 280646f9dd
commit f575d9973a

View File

@@ -0,0 +1,18 @@
FROM node:18-alpine
WORKDIR /app
# Copia package.json e package-lock.json (se esiste)
COPY package*.json ./
# Installa solo le dipendenze di produzione
RUN npm install --production
# Copia il codice sorgente del server
COPY . .
# Espone la porta definita nel server.js (default 3001)
EXPOSE 3001
# Avvia il server
CMD ["npm", "start"]