Dockerfile 324 B

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