Files
mta-sign/Dockerfile
T
Lucas Oskorep b7a07924a4
Build and Push Docker Image / build (push) Successful in 3m17s
build: manage only pnpm with mise, keep node from the base image
2026-10-26 22:25:54 -04:00

38 lines
862 B
Docker

FROM ghcr.io/jdx/mise:2026.10.19 AS mise
FROM docker.io/library/node:25 AS frontend-builder
LABEL authors="lucasoskorep"
WORKDIR /build/mta-sign-ui
COPY --from=mise /usr/local/bin/mise /usr/local/bin/mise
COPY mise.toml ./
RUN mise trust && mise install pnpm
COPY mta-sign-ui/package.json mta-sign-ui/pnpm-lock.yaml* ./
COPY mta-sign-ui/ ./
RUN mise exec -- pnpm install --frozen-lockfile
RUN mise exec -- pnpm build
FROM ghcr.io/astral-sh/uv:python3.13-bookworm
LABEL authors="lucasoskorep"
WORKDIR /app
COPY pyproject.toml uv.lock README.md ./
RUN uv sync --frozen --no-dev --no-install-project
COPY mta_api_client ./mta_api_client
COPY mta_sign_server ./mta_sign_server
COPY main.py stops.txt ./
COPY --from=frontend-builder /build/mta-sign-ui/out ./static
RUN uv sync --frozen --no-dev
EXPOSE 8000
ENTRYPOINT ["uv", "run", "python", "main.py"]