Skip to content

Commit f8ed239

Browse files
author
claudfuen
committed
fix: use Bun image from AWS ECR Public Gallery to avoid Docker Hub rate limits
- Switch from docker.io/oven/bun to public.ecr.aws/w0g4q7i6/bun:1.2.18-alpine - Keeps Bun as preferred runtime while avoiding Docker Hub rate limits - AWS ECR Public Gallery has better availability for AWS CodeBuild
1 parent cd790b4 commit f8ed239

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

apps/web/Dockerfile.migration

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Lightweight migration-only Docker image
2-
FROM node:18-alpine
2+
FROM public.ecr.aws/w0g4q7i6/bun:1.2.18-alpine
33

44
WORKDIR /app
55

66
# Copy package files first for better caching
7-
COPY package.json ./
7+
COPY package.json bun.lock* ./
88

9-
# Install dependencies using npm (since we're using Node.js now)
10-
RUN npm ci --production=false
9+
# Install all dependencies (including dev deps like tsx if needed)
10+
RUN bun install --frozen-lockfile
1111

1212
# Copy the entire src directory to avoid import path issues
1313
COPY src/ ./src/
@@ -25,5 +25,5 @@ RUN echo "=== Directory structure ===" && \
2525
# Set environment for better error reporting
2626
ENV NODE_ENV=production
2727

28-
# Default command runs migrations with verbose output - use tsx since we're on Node.js
29-
CMD ["sh", "-c", "echo 'Starting migration container...' && npx tsx scripts/run-migrations.ts"]
28+
# Default command runs migrations with verbose output
29+
CMD ["sh", "-c", "echo 'Starting migration container...' && bun run scripts/run-migrations.ts"]

0 commit comments

Comments
 (0)