From da58726f0a1ecf4fed9c4f62d6c0f5183fb99b78 Mon Sep 17 00:00:00 2001 From: Adam Cohen Hillel Date: Fri, 18 Apr 2025 03:22:35 +0100 Subject: [PATCH] docker --- backend/docker/Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 backend/docker/Dockerfile diff --git a/backend/docker/Dockerfile b/backend/docker/Dockerfile new file mode 100644 index 00000000..98545b02 --- /dev/null +++ b/backend/docker/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3.11-slim + +WORKDIR /app + +# Copy requirements first for better layer caching +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy the backend code +COPY . . + +# Set environment variable +ENV PYTHONPATH=/app + +# Expose the port the app runs on +EXPOSE 8000 + +# Command to run the application +CMD ["python", "api.py"] \ No newline at end of file