From b25df6cf4a0f4fac6397dc4de0dca497fb6667aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Galvagno=20S=C3=A9bastien?= Date: Mon, 23 Sep 2024 15:46:26 +0200 Subject: [PATCH] dockerize the app --- Dockerfile | 3 ++- README.md | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 48e3979..14acda3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ WORKDIR /app COPY package*.json ./ -RUN npm ci --only=production +# RUN npm ci --only=production +RUN npm ci COPY . . diff --git a/README.md b/README.md index 122e909..73f7020 100644 --- a/README.md +++ b/README.md @@ -108,3 +108,14 @@ db.Project.find({"id":"6565b055ae8de1c051ae0ed0"}) http://zooprocess.imev-mer.fr:8081/spec + + +# docker + +build + +docker build -t zooprocess-back . + +run + +docker run -p 8081:8081 --name zooprocess-back zooprocess-back