From fdd40e53e1c66ff15198802c7317415d20a64234 Mon Sep 17 00:00:00 2001 From: jsdio Date: Mon, 5 Jun 2023 15:43:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BF=D1=83=D1=81=D0=BA=20=D0=B8?= =?UTF-8?q?=D0=B7=20docker-compose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 14 ++++++++++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..70a663c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM python:3.11 + +WORKDIR /opt/app + +ENV PYTHONPATH '/opt/app' + +COPY requirements.txt requirements.txt + +RUN python -m pip install --no-cache-dir --upgrade pip \ + && pip install --no-cache-dir -r requirements.txt + +COPY /src . + +RUN python main.py \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d4ec7ec --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3.2' +services: + etl: + build: . + container_name: etl + env_file: + - .env + restart: always \ No newline at end of file