nexa / Dockerfile
Hariom Jaiswal
Deploy OpsDesk environment to HF Space
7dcdb5c
Raw
History Blame Contribute Delete
378 Bytes
FROM python:3.10-slim
# Creates a user with UID 1000 to match Hugging Face Spaces requirements
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]