diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b8d47b6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:slim + +WORKDIR /usr/src/app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD [ "python", "start.py" ] + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b4a696a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +version: '3' +services: + redis: + image: redis + container_name: orariotreni_redis + volumes: + - ./redis-data:/data + expose: + - "6379" + + bot: + build: . + container_name: orariotreni_bot + links: + - redis +