Spaces:
Sleeping
Sleeping
Download Dockerfile from c2p-cmd/remove-background-ai: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/c2p-cmd/remove-background-ai/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/c2p-cmd/remove-background-ai/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/c2p-cmd/remove-background-ai/resolve/main/Dockerfile
309 Bytes
| FROM python:3.9 | |
| RUN mkdir src | |
| RUN mkdir app | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /src/app | |
| COPY --chown=user ./requirements.txt ./ | |
| RUN pip3 install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user . . | |
| EXPOSE 7860 | |
| CMD [ "python3", "app.py" ] | |