Ok try this
Some checks failed
Docker Deploy / build-and-push (push) Failing after 6m6s

This commit is contained in:
2026-02-24 17:57:25 -07:00
parent 07561a4335
commit 255abd508d
2 changed files with 14 additions and 7 deletions

View File

@@ -33,3 +33,5 @@ jobs:
tags: |
${{ secrets.REPO_HOST }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}
${{ secrets.REPO_HOST }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max

View File

@@ -1,23 +1,28 @@
FROM oven/bun:1.3.9-alpine AS builder
FROM oven/bun:1.3.9-alpine AS base
WORKDIR /app
COPY package.json bun.lock* ./
FROM base AS prod-deps
COPY package.json bun.lock ./
RUN --mount=type=cache,id=bun,target=/root/.bun/install/cache \
bun install --production --frozen-lockfile || bun install --production
RUN bun install --frozen-lockfile || bun install
FROM base AS builder
COPY package.json bun.lock ./
RUN --mount=type=cache,id=bun,target=/root/.bun/install/cache \
bun install --frozen-lockfile || bun install
COPY . .
RUN bun run build
RUN rm -rf node_modules && bun install --production
FROM oven/bun:1.3.9-alpine AS runtime
FROM base AS runtime
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=prod-deps /app/node_modules ./node_modules
COPY package.json ./
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD ["bun", "run", "./dist/server/entry.mjs"]
CMD ["bun", "run", "./dist/server/entry.mjs"]