From 5c24de728f4df3ea144ee5398c7f9c98d022ec5d Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Thu, 1 Jan 2026 17:03:55 +0100 Subject: Refactor Dockerfile to use Bun for Node.js Updated the base image to 'oven/bun:1' and changed the package installation commands to use 'bun'. Added environment variable and build/test commands. --- Dockerfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index de7d651..4b60ddd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,14 @@ -FROM node:14 +FROM oven/bun:1 WORKDIR /usr/src/app -COPY package*.json ./ -RUN npm install + +RUN bun install COPY . . -CMD ["npm", "start"] +ENV NODE_ENV=production +RUN bun test +RUN bun run build +# run the app +USER bun +EXPOSE 8080/tcp +ENTRYPOINT [ "bun", "run", "start" ] -- cgit