From 1539287cd123a604de23bc31a4abb0fdfce2a093 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Wed, 21 Jan 2026 16:25:43 +0100 Subject: create Dockerfile & compose.yaml --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..171e8d5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM oven/bun:1-alpine AS base + +WORKDIR /app + +FROM base AS build + +COPY package.json bun.lock ./ + +RUN bun install --frozen-lockfile --production + +COPY *.ts tsconfig.json ./ + +RUN bun build --production --target=bun --sourcemap=inline --outfile=index.js index.ts + +FROM base AS run + +COPY --from=build /app/index.js ./ + +CMD ["bun", "run", "index.js"] -- cgit v1.2.3