summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 9c356492c9c114ec2c2ca072f528c8278fcbc71f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM oven/bun AS build
COPY . /app
WORKDIR /app/
RUN bun install
RUN bun test
RUN bun build /app/index.ts --target=bun > /app/index.js

FROM --platform=linux/arm64 oven/bun AS arm
WORKDIR /app
COPY --from=build /app/index.js .
CMD [ "bun", "run", "index.js" ]

FROM --platform=linux/amd64 oven/bun AS eightysix
WORKDIR /app
COPY --from=build /app/index.js .
CMD [ "bun", "run", "index.js" ]