File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- FROM oven/bun:1.3.12-alpine AS builder
1+ FROM oven/bun:1.3.12-alpine AS base
2+
3+ FROM base AS builder
24WORKDIR /build
35COPY package.json bun.lock ./
46RUN bun install --frozen-lockfile
57COPY . .
68RUN bun run build
79
8- FROM alpine:3.21
9- RUN apk add --no-cache libstdc++ libgcc
10+ FROM base
1011COPY --from=builder /build/.output/server server
1112RUN adduser -D app
1213USER app
Original file line number Diff line number Diff line change 66 "scripts" : {
77 "check" : " check" ,
88 "dev" : " bun run --watch scripts/dev.ts" ,
9- "build" : " bun build src/main.ts --compile --minify --sourcemap --bytecode -- outfile .output/server" ,
9+ "build" : " bun build src/main.ts --compile --minify --sourcemap --outfile .output/server" ,
1010 "gen" : " bun run gen:types" ,
1111 "gen:types" : " bun run scripts/generate-types.ts" ,
1212 "docker:build" : " docker build . -t aklinker1/store-api" ,
You can’t perform that action at this time.
0 commit comments