diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-08-17 23:50:24 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-08-17 23:53:38 -0700 |
commit | 1a4fc9535a89b58e8b67c8996ade0b833116af3a (patch) | |
tree | d16f3129d7bb69f204bba8422e909354195a0042 /Dockerfile | |
parent | 157dc327e8fe63541b517cfbeeaf202a3e8553a5 (diff) | |
download | uptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.tar.gz uptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.zip |
Move to pengueno.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 23 |
1 files changed, 10 insertions, 13 deletions
@@ -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" ] |