Spaces:
Sleeping
Sleeping
# Use Python 3.9 slim image as the base | |
FROM python:3.9-slim | |
# Set the working directory | |
WORKDIR /code | |
# Switch to non-root user | |
USER myuser | |
# Copy and install Python dependencies | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
# Default command to run the application | |
CMD ["python", "app.py"] |