From 2178cf9b2aba81301ccdac4e6fe63e0e2727324b Mon Sep 17 00:00:00 2001 From: Corban Villa Date: Sun, 5 Dec 2021 14:16:56 +0400 Subject: [PATCH] added Docker implementation --- .dockerignore | 3 +++ Dockerfile | 11 +++++++++++ README.md | 8 ++++++++ 3 files changed, 22 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..1af727b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +Dockerfile +tests/ + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..24e0ab2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:16-alpine + +ENV DEBUG=dss* + +WORKDIR /home/node/app + +COPY . . + +RUN npm install + +CMD ["/usr/local/bin/npm", "start"] diff --git a/README.md b/README.md index afe9c40..e7ee89a 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,14 @@ First install dependencies with [npm](http://npmjs.com/) - from the project dire __Without the `DEBUG` environment variable set as-documented above, there will be no output from the process indicating a successful start.__ +#### Docker + +You can also deploy node-dss using Docker with the following command: + +```bash +docker run -p 3000:3000 animcogn/node-dss:latest +``` + ### Check for a message Use `GET` to `/data/:id` where `:id` identifies your client