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)