Skip to content

Commit c19fb21

Browse files
Chore: remove bun (#14)
1 parent cce5447 commit c19fb21

File tree

4 files changed

+22
-1363
lines changed

4 files changed

+22
-1363
lines changed

Dockerfile

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,22 @@
1-
# use the official Bun image
2-
# see all versions at https://hub.docker.com/r/oven/bun/tags
3-
FROM oven/bun:1.1.45-alpine AS base
1+
# Use the latest LTS version of Node.js
2+
# https://hub.docker.com/_/node
3+
FROM node:22-alpine3.20 AS build-stage
44
WORKDIR /usr/src/app
55

6-
# install dependencies into temp directory
7-
# this will cache them and speed up future builds
8-
FROM base AS install
9-
RUN mkdir -p /temp/dev
10-
COPY package.json bun.lockb /temp/dev/
11-
RUN cd /temp/dev && bun install --frozen-lockfile
6+
# Copy package.json and package-lock.json
7+
COPY package*.json ./
128

13-
# install with --production (exclude devDependencies)
14-
RUN mkdir -p /temp/prod
15-
COPY package.json bun.lockb /temp/prod/
16-
RUN cd /temp/prod && bun install --frozen-lockfile --production
9+
# Install dependencies
10+
RUN npm ci
1711

18-
# copy node_modules from temp directory
19-
# then copy all (non-ignored) project files into the image
20-
FROM base AS build-stage
21-
COPY --from=install /temp/dev/node_modules node_modules
22-
COPY . .
23-
24-
# [optional] tests & build
12+
# Build
2513
ENV NODE_ENV=production
14+
COPY . .
15+
RUN npm run build
2616

27-
RUN bun run build
28-
29-
FROM nginx:1.27.3-alpine-slim
17+
# Use the latest LTS version of Nginx as the serving image
18+
# https://hub.docker.com/_/nginx
19+
FROM nginx:1.27.4-alpine-slim
3020

3121
COPY nginx.conf /etc/nginx/templates/default.conf.template
3222
COPY --from=build-stage /usr/src/app/dist /usr/share/nginx/html

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ UI frontend for @openmcp-project
1010

1111
### Development
1212

13-
1. install dependencies (can also use npm): `bun i`
13+
1. install dependencies: `npm i`
1414

1515
1. Copy the `frontend-config.json` to `public/frontend-config.json` and adapt the `backendUrl` according to your setup (see section Dynamic Frontend Config).
1616

@@ -20,17 +20,17 @@ UI frontend for @openmcp-project
2020

2121
1. Start the application:
2222

23-
Run `bun run dev`
23+
Run `npm run dev`
2424

2525
### Build
2626

2727
1. Build the application:
2828

29-
Run `bun run build`
29+
Run `npm run build`
3030

3131
2. Serve the application locally:
3232

33-
Run `bun run preview`
33+
Run `npm run preview`
3434

3535
3. For production:
3636

0 commit comments

Comments
 (0)