newtry / Dockerfile
Amritpal Singh
Initial commit: Streamlit app
a67dd0b
raw
history blame contribute delete
549 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install git (optional, useful for huggingface model downloads)
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Copy requirements.txt and install dependencies with no cache to reduce image size
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy all app files
COPY . .
# Expose Streamlit default port
EXPOSE 8501
# Run Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]