1234567891011121314 |
- FROM node:16-alpine
- WORKDIR /usr/src/app
- # Copia i file della cartella site2 nel container (opzionale se vuoi avere il codice fisso)
- COPY . .
- # Installa http-server globalmente
- RUN npm install -g http-server
- EXPOSE 8081
- # Avvia il server
- CMD ["http-server", "-p", "8081", ".", "-o", "http://localhost:8081/index.html"]
|