From e6ade36780fb9bd990e9d989aac8d2cfce94fedf Mon Sep 17 00:00:00 2001 From: stephen Date: Sun, 27 Feb 2022 11:13:15 -0500 Subject: [PATCH] Adding docker support Signed-off-by: stephen --- .dockerignore | 8 ++++++++ Dockerfile | 6 ++++++ README.md | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..dbf3ebd --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +node_modules +package-lock.json +config.ini +build/ +npm-debug.log +.vs/ +Dockerfile +Jenkinsfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6a1b374 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM node:16-alpine +WORKDIR /usr/src/app +COPY package*.json ./ +RUN npm install +COPY . . +CMD ["node", "index.js"] diff --git a/README.md b/README.md index e07ce6b..0ab7233 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ Vanderwarker Family XMPP Bot. ---- - [![NPM](https://nodei.co/npm/vxmppb.png?compact=true)](https://nodei.co/npm/vxmppb/) [![Known Vulnerabilities](https://snyk.io/test/npm/vxmppb/badge.svg)](https://snyk.io/test/npm/vxmppb) @@ -15,6 +14,7 @@ Vanderwarker Family XMPP Bot. You can install using: - [npm](https://wiki.vanderwarker.family/doku.php?id=code:vxmppb:install:npm) - [Git](https://wiki.vanderwarker.family/doku.php?id=code:vxmppb:install:git) + - [Docker](https://wiki.vanderwarker.family/doku.php?id=code:vxmppb:install:docker) ### :1234: Commands [See here](https://wiki.vanderwarker.family/doku.php?id=code:vxmppb:commands)