Files
linkedin-carousel-generator/Dockerfile
Nicola Malizia 2f2d5ed486 FIRST
2026-02-24 15:30:25 +01:00

29 lines
689 B
Docker

FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y
build-essential
curl
software-properties-common
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cache
COPY linkedin_carousel_app/requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY linkedin_carousel_app/ .
# Expose Streamlit port
EXPOSE 8501
# Add healthcheck
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
# Run the application
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]