2024-12-15 03:52:32 -05:00
|
|
|
FROM oven/bun AS build
|
2024-12-15 02:53:26 -05:00
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app/
|
|
|
|
RUN bun install
|
|
|
|
RUN bun test
|
2024-12-15 03:52:32 -05:00
|
|
|
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" ]
|