Skip to content

Commit

Permalink
feat: dockerimage w/ bun for uikit dist
Browse files Browse the repository at this point in the history
  • Loading branch information
fivehanz committed Dec 4, 2024
1 parent 526db79 commit 401a955
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ ENV PYTHONUNBUFFERED=1 \

ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"

############################################################
FROM oven/bun:1-slim AS frontend-builder
WORKDIR /app

COPY package.json ./
COPY bun.lockb ./

RUN bun --bun install --frozen-lockfile

############################################################
FROM python-base AS builder-base

Expand Down Expand Up @@ -52,6 +61,9 @@ COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH

WORKDIR /app/src

# copy frontend assets
COPY --from=frontend-builder /app/node_modules/uikit/dist /app/src/assets

# Copy the source code into the container
COPY . /app/src/

Expand Down

0 comments on commit 401a955

Please sign in to comment.