Skip to content

Commit

Permalink
chore: switching Dockerfiles to Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Jul 1, 2024
1 parent 03d89f3 commit 1959721
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
8 changes: 4 additions & 4 deletions idp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM node:22-alpine
FROM oven/bun:1-alpine

WORKDIR /app

COPY src ./src
COPY templates ./templates
COPY .env .
COPY package.json .
COPY package-lock.json .
COPY bun.lockb .
COPY tsconfig.json .

RUN npm ci --legacy-peer-deps
RUN bun install --frozen-lockfile

ENTRYPOINT ["npm", "run", "start"]
ENTRYPOINT ["bun", "run", "start"]

EXPOSE 8081
3 changes: 0 additions & 3 deletions idp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"swagger-autogen": "node ./swagger.js",
"lint": "eslint"
},
"engines": {
"node": "22.x"
},
"dependencies": {
"body-parser": "1.20.2",
"camelize": "1.0.1",
Expand Down
13 changes: 5 additions & 8 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22-alpine AS ui-builder
FROM oven/bun:1-alpine AS ui-builder

WORKDIR /build

Expand All @@ -9,12 +9,12 @@ COPY postcss.config.cjs .
COPY tailwind.config.cjs .
COPY vite.config.ts .
COPY package.json .
COPY package-lock.json .
COPY bun.lockb .
COPY tsconfig.json .
COPY tsconfig.node.json .

RUN npm ci --legacy-peer-deps
RUN npm run build
RUN bun install --frozen-lockfile
RUN bun run build

FROM golang:1.22-alpine AS go-builder

Expand All @@ -29,10 +29,7 @@ COPY go.sum .
RUN go mod download
RUN go build -o voltaserve-ui

FROM ubuntu:noble AS runner

RUN apt-get update
RUN apt-get install -y curl
FROM alpine:3.20 AS runner

WORKDIR /app

Expand Down
8 changes: 4 additions & 4 deletions webdav/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:22-alpine
FROM oven/bun:1-alpine

WORKDIR /app

COPY src ./src
COPY .env .
COPY package.json .
COPY package-lock.json .
COPY bun.lockb .
COPY tsconfig.json .

RUN npm ci --legacy-peer-deps
RUN bun install --frozen-lockfile

ENTRYPOINT ["npm", "run", "start"]
ENTRYPOINT ["bun", "run", "start"]

EXPOSE 8082
3 changes: 0 additions & 3 deletions webdav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"format": "prettier --write .",
"lint": "eslint"
},
"engines": {
"node": "22.x"
},
"dependencies": {
"dotenv": "16.4.5",
"passport": "0.7.0",
Expand Down

0 comments on commit 1959721

Please sign in to comment.