Added dockerfile

This commit is contained in:
lanxu 2021-11-13 12:14:19 +02:00
parent b4368eb8e0
commit e0ced417fb
2 changed files with 21 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node:alpine
# Setup
WORKDIR /app
COPY package*.json ./
RUN npm install
# Copy code
COPY app.js .
COPY appTest.js .
COPY logger.js .
COPY plugins/ ./plugins/
CMD [ "node", "app.js" ]

View File

@ -28,6 +28,13 @@ npm install
npm run start
```
## Docker
```sh
docker build -t kulmapaikka-ircbot .
docker run -v $(pwd)/config.js:/app/config.js kulmapaikka-ircbot
```
## Tekijä
Jukka Susivainio <jukka.susivainio@posteo.fi>