From 2e450aea9729feb6df9ce73094b16342e87ece19 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 15 Dec 2024 00:52:32 -0800 Subject: arm? --- Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 10ced2a..9c35649 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] -- cgit v1.2.3-70-g09d2