From 41532e8b0718565665fa6b294cc2cd83f7421fda Mon Sep 17 00:00:00 2001 From: dikshitbonu Date: Tue, 24 Feb 2026 17:48:32 +0000 Subject: [PATCH] added Dockerfile and docker-compose.yml --- Dockerfile | 13 +++++++++++++ docker-compose.yml | 10 ++++++++++ 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..1ab2f4f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +EXPOSE 5002 + +CMD ["python","app.py"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..936dafa --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +services: + my-app: + build: + context: . + volumes: + - my-app-db:/app/db + ports: + - "5002:5002" +volumes: + my-app-db: