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