Module_3 / Dockerfile
Springboardmen's picture
Update Dockerfile
bb94adc verified
# Use official Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy files
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy entire project
COPY . .
# Expose port (Streamlit default)
EXPOSE 8501
# Run Streamlit
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]