From 105705b2b4b063b6ac9392c7db3d642a6702bc3e Mon Sep 17 00:00:00 2001 From: Marco Aceti Date: Mon, 26 Aug 2019 21:01:54 +0200 Subject: [PATCH] Add docker files --- Dockerfile | 11 +++++++++++ docker-compose.yml | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml 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 +