mirror of https://github.com/buster-so/buster.git
upgrade bun version
This commit is contained in:
parent
06183cd83d
commit
33c7ab60fc
|
@ -9,7 +9,7 @@ WORKDIR /app
|
||||||
|
|
||||||
# Install pnpm and bun
|
# Install pnpm and bun
|
||||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
RUN npm install -g bun@1.2.15
|
RUN npm install -g bun@1.2.21
|
||||||
|
|
||||||
# Copy only package files for dependency resolution
|
# Copy only package files for dependency resolution
|
||||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
|
||||||
|
@ -28,7 +28,7 @@ WORKDIR /app
|
||||||
|
|
||||||
# Install pnpm and bun
|
# Install pnpm and bun
|
||||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
RUN npm install -g bun@1.2.15
|
RUN npm install -g bun@1.2.21
|
||||||
|
|
||||||
# Set build environment
|
# Set build environment
|
||||||
ENV DOCKER_BUILD=true
|
ENV DOCKER_BUILD=true
|
||||||
|
@ -57,7 +57,7 @@ RUN bun build src/index.ts --outdir ./dist --target bun --external pino-pretty &
|
||||||
# ================================================================
|
# ================================================================
|
||||||
# Stage 3: Production Runtime
|
# Stage 3: Production Runtime
|
||||||
# Minimal image with only what's needed to run
|
# Minimal image with only what's needed to run
|
||||||
FROM oven/bun:1.2.15-alpine AS runtime
|
FROM oven/bun:1.2.21-alpine AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Set production environment
|
# Set production environment
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# This expects the app to be already built by GitHub Actions
|
# This expects the app to be already built by GitHub Actions
|
||||||
# ================================================================
|
# ================================================================
|
||||||
|
|
||||||
FROM oven/bun:1.2.15-alpine AS runtime
|
FROM oven/bun:1.2.21-alpine AS runtime
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || (tsx scripts/validate-env.ts && pnpm run typecheck)",
|
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || (tsx scripts/validate-env.ts && pnpm run typecheck)",
|
||||||
"build": "tsup",
|
"build": "tsup",
|
||||||
"build:dry-run": "tsup",
|
"build:dry-run": "tsup",
|
||||||
"dev": "bun --watch src/index.ts",
|
"dev": "bun --watch --inspect src/index.ts",
|
||||||
"dev:fast": "bun --watch src/index.ts",
|
"dev:fast": "bun --watch src/index.ts",
|
||||||
"dev:build": "tsup --watch",
|
"dev:build": "tsup --watch",
|
||||||
"lint": "biome check --write",
|
"lint": "biome check --write",
|
||||||
|
|
|
@ -44,7 +44,7 @@ fi
|
||||||
|
|
||||||
echo -e "${BLUE}📋 Build Information:${NC}"
|
echo -e "${BLUE}📋 Build Information:${NC}"
|
||||||
echo "- Using optimized Bun-based multi-stage Dockerfile"
|
echo "- Using optimized Bun-based multi-stage Dockerfile"
|
||||||
echo "- Base image: oven/bun:1.2.15-alpine (includes Node.js compatibility)"
|
echo "- Base image: oven/bun:1.2.21-alpine (includes Node.js compatibility)"
|
||||||
echo "- Package manager: pnpm (installed in container)"
|
echo "- Package manager: pnpm (installed in container)"
|
||||||
echo "- Build context: repository root (for workspace dependencies)"
|
echo "- Build context: repository root (for workspace dependencies)"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -157,7 +157,7 @@ echo "- Image: $IMAGE_NAME"
|
||||||
echo "- Container: $CONTAINER_NAME"
|
echo "- Container: $CONTAINER_NAME"
|
||||||
echo "- Port exposed: $HOST_PORT -> $SERVER_PORT"
|
echo "- Port exposed: $HOST_PORT -> $SERVER_PORT"
|
||||||
echo "- Health check: ✅ PASSED"
|
echo "- Health check: ✅ PASSED"
|
||||||
echo "- Base image: oven/bun:1.2.15-alpine"
|
echo "- Base image: oven/bun:1.2.21-alpine"
|
||||||
echo "- Runtime: Bun with Node.js compatibility"
|
echo "- Runtime: Bun with Node.js compatibility"
|
||||||
|
|
||||||
# No cleanup needed since we're not creating temporary files
|
# No cleanup needed since we're not creating temporary files
|
||||||
|
|
Loading…
Reference in New Issue