aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2026-01-01 17:03:55 +0100
committerGitHub <noreply@github.com>2026-01-01 17:03:55 +0100
commit5c24de728f4df3ea144ee5398c7f9c98d022ec5d (patch)
treee0a1bc60b76e0ec0487d4482540d1c05a47177f3 /Dockerfile
parentb27d75d0eb30722f7e7745e57f7cb30577f6602f (diff)
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.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files 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" ]