| |
| |
| |
| |
| |
| |
|
|
| FROM python:3.11-slim |
|
|
| |
| LABEL org.opencontainers.image.title="Wellfound AI" |
| LABEL org.opencontainers.image.description="AI-powered Excel data completion for Wellfound exports" |
|
|
| WORKDIR /app |
|
|
| |
| |
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| curl \ |
| wget \ |
| ca-certificates \ |
| fonts-liberation \ |
| libasound2 \ |
| libatk-bridge2.0-0 \ |
| libatk1.0-0 \ |
| libcairo2 \ |
| libcups2 \ |
| libdbus-1-3 \ |
| libdrm2 \ |
| libgbm1 \ |
| libglib2.0-0 \ |
| libnspr4 \ |
| libnss3 \ |
| libpango-1.0-0 \ |
| libxcomposite1 \ |
| libxdamage1 \ |
| libxfixes3 \ |
| libxkbcommon0 \ |
| libxrandr2 \ |
| xdg-utils \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| COPY requirements.txt . |
| RUN pip install --no-cache-dir --upgrade pip && \ |
| pip install --no-cache-dir -r requirements.txt |
|
|
| |
| RUN python -m playwright install chromium && \ |
| python -m playwright install-deps chromium |
|
|
| |
| COPY app.py . |
| COPY core/ ./core/ |
| COPY templates/ ./templates/ |
| COPY static/ ./static/ |
|
|
| |
| RUN mkdir -p data/uploads data/results data/checkpoints |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| ENV PYTHONUNBUFFERED=1 |
| ENV PYTHONDONTWRITEBYTECODE=1 |
|
|
| |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ |
| CMD curl -f http://localhost:7860/api/health || exit 1 |
| |
| CMD ["python", "app.py"] |
| |