diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1,6 +1,16 @@ -FROM oven/bun +FROM oven/bun AS build COPY . /app WORKDIR /app/ RUN bun install RUN bun test -CMD bun run /app/index.ts +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" ] |