Download Dockerfile from Maulidaaa/HelloMe: direct link, hf CLI and curl.
- Browser
- Download file 748 Bytes
-
https://huggingface.co/spaces/Maulidaaa/HelloMe/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Maulidaaa/HelloMe/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Maulidaaa/HelloMe/resolve/main/Dockerfile
748 Bytes
| # Gunakan Python base image | |
| FROM python:3.10-slim | |
| # Install dependency sistem | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| ffmpeg \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| build-essential \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set direktori kerja | |
| WORKDIR /app | |
| # Salin semua file ke dalam container | |
| COPY . /app | |
| # Install Python dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Atur variabel environment agar Matplotlib & YOLO tidak error | |
| ENV MPLCONFIGDIR=/tmp | |
| ENV YOLO_CONFIG_DIR=/tmp | |
| # Jalankan Flask server | |
| ENV FLASK_APP=app.py | |
| ENV FLASK_RUN_HOST=0.0.0.0 | |
| CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"] | |