add docker

Clemens Klug 2018-04-16 12:57:15 +02:00
parent e624296fd2
commit eb4bde8b58
2 changed files with 16 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM python:3.6-alpine3.7
ADD [".", "/app"]
WORKDIR /app
RUN apk add --update g++ gfortran openblas-dev libpng-dev musl-dev freetype-dev
RUN pip install -r requirements.txt --no-cache-dir
CMD ["python", "bot.py"]

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: "2"
services:
doorbot:
build: .
image: fswiai/doorbot:0.2
volumes:
- ./settings.json:/app/settings.json