PalkiiS's picture
Update Dockerfile
ebb9de7 verified
raw
history blame contribute delete
606 Bytes
# Dockerfile
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Install build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt ./
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Copy app files
COPY app.py ./
COPY src/ ./src/
# Streamlit config
COPY .streamlit ./ .streamlit
# Expose Streamlit default port
EXPOSE 8501
# Run Streamlit app
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]