-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 781 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 781 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
FROM python:3.12-slim
# Install Node.js 22.x
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential curl gnupg \
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir --timeout 300 --retries 5 -r requirements.txt
# Install Node dependencies
COPY frontend/package*.json frontend/
RUN cd frontend && npm ci
# Copy application code (includes chroma/ data)
COPY . .
# Build Next.js — use empty API URL so calls go through rewrites
ARG NEXT_PUBLIC_API_URL=""
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
RUN cd frontend && npm run build
CMD ["bash", "start.sh"]