From 4c7f76b03ac49ff94deb62c25205b0698b282cb0 Mon Sep 17 00:00:00 2001 From: Dan Koller <57103678+dan-koller@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:37:55 +0200 Subject: [PATCH] chore: Added Dockerfile and docker-compose.yml for containerization --- Dockerfile | 12 ++++++++++++ docker-compose.yml | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..14f2f6d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3-alpine + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +EXPOSE 8080 + +ENTRYPOINT ["python", "start.py", "-p", "8080", "-b", "0.0.0.0"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9629f0a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3" + +services: + mapy: + container_name: mapy + build: . + image: mapy + restart: unless-stopped + ports: + - "8080:8080" + command: --debug