test / Dockerfile
AjaykumarPilla's picture
Update Dockerfile
09ec5c5 verified
raw
history blame contribute delete
485 Bytes
FROM python:3.9-slim
# Install dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app.py .
COPY model.pkl .
# Expose Streamlit port
EXPOSE 8501
# Run Streamlit
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]