Spaces:
Configuration error
Configuration error
Download Dockerfile from hissterical/openenv2: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/spaces/hissterical/openenv2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/hissterical/openenv2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/hissterical/openenv2/resolve/main/Dockerfile
342 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN useradd --create-home --uid 1000 appuser | |
| USER appuser | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--port", "7860"] | |