03 / Dockerfile
Brian269's picture
Update Dockerfile
a312462 verified
raw
history blame contribute delete
418 Bytes
FROM python:3.11.8-slim
WORKDIR /app
# System dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy files
COPY . /app
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose Streamlit port
EXPOSE 7860
# Run Streamlit
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]