From 2becce4054361db2a381c1ef2f140756238ee794 Mon Sep 17 00:00:00 2001 From: Trigus42 <59501676+Trigus42@users.noreply.github.com> Date: Fri, 14 Jan 2022 19:34:52 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 16 ++++++++++++++++ docker-compose.yaml | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..78ae9626 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.8-slim + +WORKDIR /app + +COPY ./ /app/ + +RUN \ + # Install dependencies + apt update; \ + apt install ffmpeg -y; \ + # Install python modules + pip3 install --no-cache-dir -r /app/config/requirements.txt + +VOLUME [ "/app/config" ] + +CMD [ "python3","-u", "/app/run.py"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..75d343c2 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,9 @@ +version: "3.3" + +services: + app: + build: ./ + container_name: dingolingo + volumes: + - './config/:/app/config' + restart: unless-stopped \ No newline at end of file