FROM oven/bun AS build COPY . /app WORKDIR /app/ RUN bun install RUN bun test RUN bun build /app/index.js --target=bun FROM --platform=linux/arm64 bun:1 AS arm WORKDIR /app COPY --from=build /app/index.js . CMD [ "bun", "run", "index.js" ] FROM --platform=linux/amd64 bun:1 AS eightysix WORKDIR /app COPY --from=build /app/index.js . CMD [ "bun", "run", "index.js" ]