Some checks failed
Test and deploy staging / staging (push) Failing after 43s
Run the sveltekit-3 migration and finish its manual tasks:
- Move kit config into the sveltekit() Vite plugin; drop svelte.config.js
- Replace $lib with #lib subpath imports
- Declare env vars in src/env.ts and import them from $app/env/{private,public}
- Consolidate param matchers into src/params.ts
- Use error(status, message), Response.json, refreshAll and goto reset/shallow
- Fall back to a full page load when goto rejects a login return path
Switch from adapter-node to adapter-bun: the build script runs Vite under
Bun (the adapter requires it) and the image starts with `bun ./build`.
Runtime env names (PORT, BODY_SIZE_LIMIT, ADDRESS_HEADER, ...) are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
731 B
Docker
Executable File
25 lines
731 B
Docker
Executable File
FROM oven/bun:1.4.0 AS builder
|
|
WORKDIR /app
|
|
COPY package.json bun.lock ./
|
|
RUN bun install --frozen-lockfile
|
|
COPY . .
|
|
RUN bun run test:unit -- --run
|
|
RUN bun run build
|
|
|
|
FROM oven/bun:1.4.0
|
|
WORKDIR /app
|
|
ARG GIT_SHA=dev
|
|
ENV APP_VERSION=$GIT_SHA
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY --from=builder /app/build ./build
|
|
COPY --from=builder /app/scripts ./scripts
|
|
COPY --from=builder /app/data ./data
|
|
COPY --from=builder /app/src/lib/server/db/schema ./src/lib/server/db/schema
|
|
COPY --from=builder /app/src/lib/cs-prices ./src/lib/cs-prices
|
|
COPY --from=builder /app/src/lib/availability.ts ./src/lib/availability.ts
|
|
COPY package.json ./
|
|
EXPOSE 3000
|
|
ENV NODE_ENV=production
|
|
ENV BODY_SIZE_LIMIT=6M
|
|
CMD ["bun", "./build"]
|