-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
tesseract-ocr \
tesseract-ocr-eng \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY scripts/ ./scripts/
COPY app/ ./app/
COPY data/ ./data/
RUN mkdir -p /var/data/index
ENV PYTHONPATH=/app
ENV DATA_DIR=/opt/render/project/src/data
ENV INDEX_DIR=/var/data/index
ENV CHAT_MODEL=gpt-4o-mini
ENV EMBEDDING_MODEL=text-embedding-3-large
# Expose ports for API and UI
EXPOSE 8080 8501
# Copy startup script
COPY docker-entrypoint.sh .
RUN chmod +x docker-entrypoint.sh
# Use startup script for local development (includes both API and UI)
CMD ["./docker-entrypoint.sh"]