privbert-proxy / Dockerfile
shikhasConsent
Fix Docker deployment: run as non-root user for HuggingFace Spaces
fd448d8
Raw
History Blame Contribute Delete
246 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
RUN useradd -m -u 1000 user
USER user
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]