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" ]