Skip to content

Commit 081c314

Browse files
committed
fix(docker): use deterministic bun install, require lockfile
1 parent ff2f3bf commit 081c314

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ ENV VITE_API_URL=$VITE_API_URL
1313
ENV VITE_SUPABASE_URL=$VITE_SUPABASE_URL
1414
ENV VITE_SUPABASE_ANON_KEY=$VITE_SUPABASE_ANON_KEY
1515

16-
# Copy package files
17-
COPY package.json bun.lock* ./
16+
# Copy package files (lockfile required for deterministic builds)
17+
COPY package.json bun.lock ./
1818

19-
# Install dependencies
20-
RUN bun install --frozen-lockfile || bun install
19+
# Install dependencies (fail if lockfile missing or outdated)
20+
RUN bun install --frozen-lockfile
2121

2222
# Copy source code
2323
COPY . .

0 commit comments

Comments
 (0)