Docker files

This commit is contained in:
nicco 2018-04-11 12:38:22 +02:00
parent a7c297a546
commit d7fe80c2f5
2 changed files with 17 additions and 0 deletions

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: '3.6'
services:
instabot:
build: ./
restart: always
volumes:
- ./app.py:/app/app.py

9
dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM python:alpine
WORKDIR /app
RUN apk add --no-cache git
RUN git clone https://github.com/instabot-py/instabot.py.git .
RUN pip install --no-cache-dir -r requirements.txt
CMD [ "python", "-u", "./app.py" ]