-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.web
More file actions
36 lines (27 loc) · 869 Bytes
/
Copy pathDockerfile.web
File metadata and controls
36 lines (27 loc) · 869 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 node:22-alpine AS frontend-build
WORKDIR /frontend
RUN npm install --global pnpm@10.33.0
COPY frontend/package.json frontend/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY frontend/ ./
RUN pnpm build
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_LINK_MODE=copy \
PORT=10000
WORKDIR /app
COPY pyproject.toml uv.lock README.md ./
COPY backend/ backend/
RUN python -m pip install --no-cache-dir uv \
&& uv sync --frozen --no-dev
COPY data/ data/
COPY ontology/ ontology/
COPY fabric_seed/ fabric_seed/
COPY artifacts/replay/sanitized/ artifacts/replay/sanitized/
COPY --from=frontend-build /frontend/dist frontend/dist
COPY deploy/start_web.sh deploy/start_web.sh
RUN chmod +x deploy/start_web.sh \
&& /app/.venv/bin/python -m concord.seed.seed_duckdb
EXPOSE 10000
CMD ["./deploy/start_web.sh"]