uptime/Dockerfile
Elizabeth Hunt 466711e728
Some checks failed
continuous-integration/drone/push Build is failing
arm?
2024-12-15 00:53:12 -08:00

17 lines
369 B
Docker

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