diff --git a/Dockerfile b/Dockerfile index b7f1c32..59b711a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,9 @@ FROM oven/bun:1 AS builder WORKDIR /app +ARG BUN_REGISTRY=https://registry.npmmirror.com +ENV BUN_CONFIG_REGISTRY=${BUN_REGISTRY} + COPY package.json bun.lock ./ RUN bun install --frozen-lockfile @@ -12,6 +15,9 @@ RUN bun run build FROM oven/bun:1-slim AS runner WORKDIR /app +ARG BUN_REGISTRY=https://registry.npmmirror.com +ENV BUN_CONFIG_REGISTRY=${BUN_REGISTRY} + COPY package.json bun.lock ./ RUN bun install --frozen-lockfile --production