trapSTAR-interface / Dockerfile
Willie999's picture
Create Dockerfile
9d53e8a verified
Raw
History Blame
501 Bytes
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"]