File size: 309 Bytes
5183689
fdab00f
 
 
5183689
 
 
fdab00f
5183689
fdab00f
5183689
fdab00f
5183689
 
 
 
 
 
 
fdab00f
5183689
fdab00f
5183689
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM oven/bun:1 AS build

WORKDIR /app

COPY . .
RUN bun install
RUN bun run build

FROM oven/bun:1-slim AS run

WORKDIR /app

COPY --from=build /app/package.json .
COPY --from=build /app/bun.lockb .
COPY --from=build /app/build ./build

RUN bun install

USER bun

EXPOSE 3000

CMD ["bun", "./build/index.js"]