Team Ai
Apppublic

Rob200/LegacyCodeDocumentAgent

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1FROM python:3.11-slim
2
3WORKDIR /app
4
5# Install system dependencies
6RUN apt-get update && apt-get install -y \
7    build-essential \
8    && rm -rf /var/lib/apt/lists/*
9
10# Copy requirements first for caching
11COPY requirements.txt .
12RUN pip install --no-cache-dir -r requirements.txt
13
14# Copy all application files
15COPY . .
16
17# Create output directory
18RUN mkdir -p output sample_files
19
20# Expose Streamlit port
21EXPOSE 8501
22
23# Health check
24HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
25
26# Run Streamlit
27ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]