Spaces:
Running
Running
Download Dockerfile from banu4prasad/Gateprep: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/spaces/banu4prasad/Gateprep/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/banu4prasad/Gateprep/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/banu4prasad/Gateprep/resolve/main/Dockerfile
603 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user \ | |
| && mkdir -p /data/uploads \ | |
| && chown -R user:user /data /home/user | |
| USER user | |
| ENV HOME=/home/user | |
| ENV PATH="$HOME/.local/bin:$PATH" | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV UPLOAD_DIR=/data/uploads | |
| WORKDIR $HOME/app | |
| COPY --chown=user:user backend/requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user backend/ . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips", "*"] |