forked from Work-Systems-Ltd/temporal-task-orchestrator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 631 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (17 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:22-slim AS frontend
WORKDIR /build
COPY package.json package-lock.json tailwind.config.js ./
COPY ui/src/ ui/src/
COPY ui/templates/ ui/templates/
RUN npm ci && npm run build
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends iputils-ping && \
rm -rf /var/lib/apt/lists/* && \
pip install --no-cache-dir poetry && \
poetry config virtualenvs.create false
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root --only main
COPY . .
COPY --from=frontend /build/ui/static/css/ ui/static/css/
COPY --from=frontend /build/ui/static/js/ ui/static/js/