Spaces:
Paused
Paused
Download Dockerfile from MalikSahib1/proxy-maker-api: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/MalikSahib1/proxy-maker-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MalikSahib1/proxy-maker-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MalikSahib1/proxy-maker-api/resolve/main/Dockerfile
338 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY ./main.py /code/main.py | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |