Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files1 unmodified line2345673 unmodified lines111213141516171819201 unmodified lineWORKDIR /appRUN apt-get update && apt-get install -y \build-essential \curl \3 unmodified linesCOPY requirements.txt ./COPY src/ ./src/RUN pip3 install -r requirements.txtEXPOSE 8501HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/healthENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]1 unmodified line23456783 unmodified lines121314151617181920212223242526271 unmodified lineWORKDIR /app# Install system dependencies yang dibutuhkanRUN apt-get update && apt-get install -y \build-essential \curl \3 unmodified linesCOPY requirements.txt ./COPY src/ ./src/# Upgrade pip dan install requirements (ditambah upgrade numpy langsung di sini untuk jaga-jaga)RUN pip3 install --no-cache-dir --upgrade pip && \pip3 install --no-cache-dir -r requirements.txt && \pip3 install --no-cache-dir --upgrade numpy# Berikan hak akses penuh ke direktori /app (Wajib untuk Hugging Face)RUN chmod -R 777 /app# Hugging Face menggunakan port 7860 secara defaultEXPOSE 7860# Gunakan port 7860 untuk StreamlitENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
Dockerfile+11-4