Spaces:
Runtime error
Runtime error
Download Dockerfile from attendantelectro/bot: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/attendantelectro/bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/attendantelectro/bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/attendantelectro/bot/resolve/main/Dockerfile
447 Bytes
| FROM python:3.9 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| # کپی فایلهای لازم | |
| COPY --chown=user requirements.txt prapt.txt ./ | |
| # نصب وابستگیها | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # کپی کد اصلی | |
| COPY --chown=user app.py ./ | |
| # ایجاد پوشه برای دادههای کاربر | |
| RUN mkdir -p user_data | |
| CMD ["python", "app.py"] |