-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 1013 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 1013 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
# ── Stage 1: Build React UI ──────────────────────────────────────────────────
FROM node:24-alpine AS ui
WORKDIR /ui
COPY ui/package*.json ./
RUN npm ci
COPY ui/ ./
RUN npm run build
# ── Stage 2: Python runtime ─────────────────────────────────────────────────
FROM python:3.14-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl jq openssh-client \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -r -s /bin/false -m conduit
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY server.py ./
COPY conduit-*.sh ./
COPY lib/ ./lib/
COPY templates/ ./templates/
COPY --from=ui /ui/dist ./ui/dist
RUN chown -R conduit:conduit /app
USER conduit
EXPOSE 9999
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "9999"]