Aggiunge Dockerfile e compose.yaml

Vengono usate 3000 dispplay e 3001 controller.
This commit is contained in:
2026-02-15 18:44:51 +01:00
parent aa88e2b7a1
commit c36f90848b
3 changed files with 31 additions and 4 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
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"]

8
compose.yaml Normal file
View File

@@ -0,0 +1,8 @@
services:
segnapunti:
build: .
ports:
- 3000:3000
- 3001:3001
container_name: segnapunti-container

9
package-lock.json generated
View File

@@ -3635,9 +3635,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001495",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001495.tgz",
"integrity": "sha512-F6x5IEuigtUfU5ZMQK2jsy5JqUUlEFRVZq8bO2a+ysq5K7jD6PPc9YXZj78xDNS3uNchesp1Jw47YXEqr+Viyg==",
"version": "1.0.30001769",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz",
"integrity": "sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==",
"dev": true,
"funding": [
{
@@ -3652,7 +3652,8 @@
"type": "github",
"url": "https://github.com/sponsors/ai"
}
]
],
"license": "CC-BY-4.0"
},
"node_modules/chai": {
"version": "6.2.2",