Spaces:
Sleeping
Sleeping
Download Dockerfile from saifulbabo/math-captcha1: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/saifulbabo/math-captcha1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/saifulbabo/math-captcha1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/saifulbabo/math-captcha1/resolve/main/Dockerfile
486 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:/usr/local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app/ | |
| CMD ["/usr/local/bin/uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2"] |