uptime/Dockerfile

17 lines
391 B
Docker
Raw Normal View History

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