| FROM node:20 | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm install -g typescript | |
| # Compila TypeScript all'avvio del container | |
| CMD ["tsc", "src/main.ts"] && node src/main.js |
| FROM node:20 | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm install -g typescript | |
| # Compila TypeScript all'avvio del container | |
| CMD ["tsc", "src/main.ts"] && node src/main.js |