From 1a4fc9535a89b58e8b67c8996ade0b833116af3a Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 17 Aug 2025 23:50:24 -0700 Subject: Move to pengueno. --- Dockerfile | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 9c35649..bfb2c1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,13 @@ -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 node:22-slim AS build -FROM --platform=linux/arm64 oven/bun AS arm WORKDIR /app -COPY --from=build /app/index.js . -CMD [ "bun", "run", "index.js" ] +COPY . /app + +RUN npm ci +RUN npm run build + +ENTRYPOINT [ "/bin/bash", "-c" ] + +FROM build AS uptime +CMD [ "node /app/dist/index.js --run-server --port=9000" ] -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