SupportOps-Env / Dockerfile
Gaurav711's picture
Fix Dockerfile template syntax and add Hugging Face Spaces metadata frontmatter
ae91a5d
Raw
History Blame Contribute Delete
464 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY env/ ./env/
COPY server.py .
COPY openenv.yaml .
COPY inference.py .
COPY README.md .
RUN useradd -m -u 1000 appuser && chown -R appuser /app
USER appuser
EXPOSE 7860
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]