Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files3 unmodified lines4567789910111213141516151717183 unmodified lines
RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./COPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Hugging Face Spaces uses $PORT (usually 7860)ENV PORT=7860EXPOSE 7860HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]CMD ["bash", "-lc", "streamlit run app.py --server.address 0.0.0.0 --server.port ${PORT}"]Dockerfile+5-4