19 lines
424 B
Docker
19 lines
424 B
Docker
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /usr/src/app
|
|
# Copia tutto
|
|
COPY . .
|
|
|
|
# Aggiunge GIT ma serve solo se si vuole evidenziare un hash del commit
|
|
RUN apk add git
|
|
|
|
# aggiunge l'ultima versione di node
|
|
RUN npm install -g npm@latest
|
|
# Installa tutte le dipendenze del progetto
|
|
RUN npm install
|
|
|
|
# Qui fa partire il comando...
|
|
# Per adesso è dev perchè non ho capito bene il tutto... (Attilio)
|
|
CMD ["npm", "run", "serve"]
|
|
|