Spaces:
Running
Running
FROM python:3.9 | |
WORKDIR /code | |
# Create cache directory with correct permissions | |
RUN mkdir -p /.cache && chmod 777 /.cache | |
# Create a non-root user | |
RUN useradd -m -u 1000 user | |
USER user | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
CMD ["python", "app.py"] | |