Aggiunge Dockerfile e compose.yaml
Vengono usate 3000 dispplay e 3001 controller.
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal 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
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
segnapunti:
|
||||
build: .
|
||||
ports:
|
||||
- 3000:3000
|
||||
- 3001:3001
|
||||
container_name: segnapunti-container
|
||||
|
||||
9
package-lock.json
generated
9
package-lock.json
generated
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user