Ajout du Dockerfile pour un prochain déploiement

This commit is contained in:
Guams 2025-01-25 20:58:08 +01:00
parent 8ce9b82863
commit 1644ac32c9
2 changed files with 17 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM node:alpine
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN npm install -g @angular/cli
RUN npm install
CMD ["ng", "serve", "--host", "0.0.0.0"]

View File

@ -25,3 +25,10 @@ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To u
## Further help ## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
pour run le docker :
```
sudo docker build -t abonentendeur .
sudo docker run -d -p 4200:4200 abonentendeur
```