Spaces:
Runtime error
Runtime error
Download Dockerfile from attendantelectro/File-Converter: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/spaces/attendantelectro/File-Converter/resolve/refs%2Fpr%2F2/Dockerfile
- Command line
-
hf download hf://spaces/attendantelectro/File-Converter@refs/pr/2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/attendantelectro/File-Converter/resolve/refs%2Fpr%2F2/Dockerfile
412 Bytes
| # تعریف پایه Docker | |
| FROM python:3.9-slim | |
| # نصب وابستگیهای سیستمی | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| # نصب وابستگیهای Python | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| # کپی کد برنامه به داخل کانتینر | |
| COPY . /app | |
| WORKDIR /app | |
| # تعریف دستور اجرای برنامه | |
| CMD ["streamlit", "run", "app.py"] | |