Spaces:
Sleeping
Sleeping
File size: 501 Bytes
9d53e8a | 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 up user privileges for Hugging Face Spaces
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
# Copy dependency tracking lists and install packages
COPY --chown=user requirements.txt $HOME/app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy application script logic
COPY --chown=user . $HOME/app
# Expose the standard Gradio port
EXPOSE 7860
CMD ["python", "app.py"] |