CoolFace
Apppublic

mrme77/dfars-assistant

sourceHugging Faceupdated 1mo agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
1# Streamlit on Hugging Face Spaces (Docker SDK).2# HF routes traffic to port 7860 and runs the container as a non-root user.3FROM python:3.12-slim4 5# Non-root user expected by HF Spaces.6RUN useradd -m -u 1000 user7USER user8ENV HOME=/home/user \9    PATH=/home/user/.local/bin:$PATH \10    PYTHONUNBUFFERED=111 12WORKDIR /app13 14COPY --chown=user requirements.txt ./15RUN pip install --no-cache-dir --user -r requirements.txt16 17COPY --chown=user . ./18 19EXPOSE 786020 21CMD ["streamlit", "run", "app.py", \22     "--server.port=7860", \23     "--server.address=0.0.0.0", \24     "--server.headless=true"]25