This commit is contained in:
Adam Cohen Hillel 2025-04-18 01:34:02 +01:00
parent 8f20c9eef1
commit 489254d05a
1 changed files with 19 additions and 0 deletions

19
backend/docker/Dockerfile Normal file
View File

@ -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"]