Spaces:
Sleeping
Sleeping
Download Dockerfile from Brainw/UdemyScout: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/Brainw/UdemyScout/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Brainw/UdemyScout/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Brainw/UdemyScout/resolve/main/Dockerfile
382 Bytes
| FROM python:3.10-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| # Ensure data directory exists and is writable | |
| RUN mkdir -p data logs && chmod 777 data logs | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |