Spaces:
Paused
Paused
Download Dockerfile from ahmetalper/notes: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/ahmetalper/notes/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ahmetalper/notes/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ahmetalper/notes/resolve/main/Dockerfile
572 Bytes
| FROM python:3.10 | |
| RUN useradd -m -u 1000 user | |
| ENV HOME=/home/user | |
| ENV PATH=/home/user/.local/bin:$PATH | |
| USER user | |
| WORKDIR $HOME/app | |
| RUN pip install --no-cache-dir apscheduler | |
| RUN pip install --no-cache-dir requests | |
| RUN pip install --no-cache-dir uvicorn | |
| RUN pip install --no-cache-dir fastapi | |
| RUN pip install --no-cache-dir pillow | |
| RUN pip install --no-cache-dir jinja2 | |
| RUN pip install --no-cache-dir gdown | |
| RUN --mount=type=secret,id=URL,mode=0444,required=true \ | |
| git clone $(cat /run/secrets/URL) . | |
| COPY --chown=user . $HOME/app | |
| CMD ["python", "backend/main.py"] |