Skip to content
Merged
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
15 changes: 10 additions & 5 deletions web-v2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM oven/bun:latest AS builder
FROM oven/bun:latest AS deps

WORKDIR /app

COPY package.json bun.lock ./
RUN bun install --frozen-lockfile

FROM node:20-bookworm-slim AS builder

WORKDIR /app

Expand All @@ -7,11 +14,9 @@ ARG VITE_REACT_APP_SERVER_URL
ENV VITE_API_BASE_URL=${VITE_API_BASE_URL}
ENV VITE_REACT_APP_SERVER_URL=${VITE_REACT_APP_SERVER_URL}

COPY package.json bun.lock ./
RUN bun install --frozen-lockfile

COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN bun run build
RUN node scripts/vite.mjs build

FROM nginx:alpine

Expand Down