diff options
| author | stonedDiscord <Tukz@gmx.de> | 2026-01-01 17:03:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-01 17:03:55 +0100 |
| commit | 5c24de728f4df3ea144ee5398c7f9c98d022ec5d (patch) | |
| tree | e0a1bc60b76e0ec0487d4482540d1c05a47177f3 | |
| parent | b27d75d0eb30722f7e7745e57f7cb30577f6602f (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.
| -rw-r--r-- | Dockerfile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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" ] |
