blob: 171e8d56da99883dc0bf55a45dfd2c7ca42ed2d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
FROM oven/bun:1-alpine AS base
WORKDIR /app
FROM base AS build
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production
COPY *.ts tsconfig.json ./
RUN bun build --production --target=bun --sourcemap=inline --outfile=index.js index.ts
FROM base AS run
COPY --from=build /app/index.js ./
CMD ["bun", "run", "index.js"]
|