Spaces:
Sleeping
Sleeping
File size: 438 Bytes
76d3d9e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM python:3.11-slim
# Set the working directory
WORKDIR /usr/src/backend
# Copy the necessary files to the working directory
COPY config.py .
COPY app/ ./app/
COPY run.py .
# Add the project root to PYTHONPATH
ENV PYTHONPATH=/usr/src/backend:$PYTHONPATH
# Install dependencies
COPY app/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port and run the backend
EXPOSE 8000
CMD ["python", "run.py"]
|