Add dockerfile
This commit is contained in:
parent
910d4f3b56
commit
9b6c4af7c7
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
.git/
|
||||
node_modules/
|
||||
storage/
|
||||
config/development.yaml
|
||||
config/production.yaml
|
||||
.idea/
|
10
Dockerfile
Normal file
10
Dockerfile
Normal 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"]
|
|
@ -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
|
||||
```
|
Loading…
Reference in a new issue