Download Dockerfile from Archy-Welcomer/Events-Recovery: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/Archy-Welcomer/Events-Recovery/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Archy-Welcomer/Events-Recovery/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Archy-Welcomer/Events-Recovery/resolve/main/Dockerfile
500 Bytes
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libcurl4-openssl-dev \ | |
| libssl-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 7860 | |
| CMD ["python", "main.py"] |