chat-db / Dockerfile
aephiday's picture
Upload Dockerfile
5fa4341 verified
raw
history blame contribute delete
629 Bytes
FROM python:3.9-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Salin dependencies dan source code
COPY requirements.txt ./
# termasuk app.py di root atau src/
COPY src/ ./src/
RUN pip install --upgrade pip && pip install -r requirements.txt
# Port untuk streamlit
EXPOSE 7860
# Kesehatan aplikasi
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
# Jalankan aplikasi Streamlit
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]