This commit is contained in:
Nicola Malizia
2026-02-24 15:30:25 +01:00
commit 2f2d5ed486
12 changed files with 1041 additions and 0 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
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"]