Add dockerfile

This commit is contained in:
Travis Ralston 2019-03-17 22:25:16 -06:00
parent 910d4f3b56
commit 9b6c4af7c7
3 changed files with 23 additions and 0 deletions

6
.dockerignore Normal file
View file

@ -0,0 +1,6 @@
.git/
node_modules/
storage/
config/development.yaml
config/production.yaml
.idea/

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM node:10-alpine
RUN mkdir -p /app
WORKDIR /app
COPY . /app
RUN npm install && npm run build
VOLUME /app/config
VOLUME /app/storage
EXPOSE 8082
ENV NODE_ENV=production
CMD ["node", "/app/lib/index.js"]

View file

@ -33,4 +33,11 @@ namespaces:
aliases:
- exclusive: true
regex: "#_stickerpack_.+:t2bot.io"
```
# Docker
```
docker build -t turt2live/matrix-sticker-manager .
docker run -v /app/config/production.yaml:config.yaml -v /app/storage:storage -p 8082:8082 turt2live/matrix-sticker-manager
```