uptime/Dockerfile
Elizabeth Hunt 2e450aea97
All checks were successful
continuous-integration/drone/push Build is passing
arm?
2024-12-15 00:54:50 -08:00

17 lines
391 B
Docker

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