Spaces:
Paused
Paused
Download Dockerfile from khoaliamle/PopTech_Cleaner: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/khoaliamle/PopTech_Cleaner/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/khoaliamle/PopTech_Cleaner/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/khoaliamle/PopTech_Cleaner/resolve/main/Dockerfile
325 Bytes
| FROM python:3.11-slim | |
| # Create & use non-root user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| # Environment | |
| ENV HOME=/home/user | |
| WORKDIR $HOME/app | |
| # Installation | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Caching | |
| COPY --chown=user . . | |
| RUN mkdir -p cache | |
| CMD ["python", "app.py"] | |