Skip to content

Commit

Permalink
feat: speedup docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Dec 31, 2024
1 parent dad71c8 commit 1dd5d79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ WORKDIR /app
COPY frontend/package.json /
RUN bun install
COPY frontend .
RUN NODE_ENV=production bun run build
RUN NODE_ENV=production bun run -b build

FROM python:3.13-slim AS py
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim AS py
WORKDIR /app
COPY pyproject.toml .
RUN pip install uv --disable-pip-version-check --root-user-action ignore && uv venv && uv sync --compile-bytecode
RUN uv sync --compile-bytecode

FROM python:3.13-slim AS base
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim AS base
WORKDIR /app
COPY --from=js /app/dist frontend/dist
COPY --from=py /app .
Expand Down

0 comments on commit 1dd5d79

Please sign in to comment.