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: