tourism_package_model / Dockerfile
suhaskarthik's picture
Upload 8 files
50a285e verified
raw
history blame contribute delete
600 Bytes
# Use a lightweight Python base image
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Install system dependencies (optional but useful for some packages)
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all project files into container
COPY . .
# Expose Streamlit default port
EXPOSE 8501
# Run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]