From 1644ac32c9e4694f23501d9f7f8f12dc32c9a723 Mon Sep 17 00:00:00 2001 From: Guams Date: Sat, 25 Jan 2025 20:58:08 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20Dockerfile=20pour=20un=20prochain?= =?UTF-8?q?=20d=C3=A9ploiement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++++++++ README.md | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1456808 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 610e239..468c04c 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,10 @@ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To u ## 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. + + +pour run le docker : +``` +sudo docker build -t abonentendeur . +sudo docker run -d -p 4200:4200 abonentendeur +```