logo-generator / Dockerfile
kothavasavi's picture
update readme
c9c1b7f
raw
history blame contribute delete
540 Bytes
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# Set up the working directory
WORKDIR /app
# Copy requirements.txt first to leverage Docker caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Expose the Streamlit port
EXPOSE 8501
# Run the app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]