From 32cb66e3f4e8257627c995fd98f3c9b8bc9a8f29 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Mon, 8 Dec 2025 17:55:43 +0900 Subject: [PATCH] Update Dockerfile --- Dockerfile | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e62486..db4a404 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ -# ================================================ -FROM oven/bun AS build +FROM debian:12 + +RUN apt-get update && \ + apt-get install -y libstdc++6 && \ + curl -fsSL https://bun.sh/install | bash && \ + apt-get clean WORKDIR /app @@ -9,10 +13,8 @@ COPY bun.lock bun.lock RUN bun install -COPY ./src ./src - ENV NODE_ENV=production - +COPY ./src ./src RUN bun build \ --compile \ --minify-whitespace \ @@ -20,20 +22,6 @@ RUN bun build \ --outfile server \ src/index.ts -# ================================================ -FROM debian:12 - -RUN apt-get update && \ - apt-get install -y libstdc++6 && \ - apt-get clean - -WORKDIR /app - -COPY --from=build /app/server server -COPY --from=build /app/node_modules node_modules - -ENV NODE_ENV=production - CMD ["./server"] EXPOSE 3000