Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ ENV NODE_ENV=production

COPY frontend .

ARG VITE_API_BASE_URL=/api

RUN apk add pnpm && \
CI=true pnpm install && \
VITE_API_BASE_URL=http://localhost:8400/api pnpm build
VITE_API_BASE_URL=${VITE_API_BASE_URL} pnpm build

# Build backend image that also serves frontend (stored in `/app/frontend-dist`)
FROM python:3.14-alpine3.22
Expand All @@ -28,7 +30,7 @@ USER bracket

RUN uv sync --no-dev --locked

COPY --from=builder /app/dist /app/frontend-dist
COPY --from=builder --chown=bracket:bracket /app/dist /app/frontend-dist

EXPOSE 8400

Expand Down