Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files1 unmodified line23456783 unmodified lines12131414151617181916202122182324252620271 unmodified line
WORKDIR /app
# Install system dependencies yang dibutuhkanRUN apt-get update && apt-get install -y \ build-essential \ curl \3 unmodified linesCOPY requirements.txt ./COPY src/ ./src/
RUN pip3 install -r requirements.txt# 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
EXPOSE 8501# Berikan hak akses penuh ke direktori /app (Wajib untuk Hugging Face)RUN chmod -R 777 /app
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health# Hugging Face menggunakan port 7860 secara defaultEXPOSE 7860
# Gunakan port 7860 untuk StreamlitENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]Dockerfile+11-4