소스 검색

Update Dockerfile to use Bun for package management and build process

- Changed base image from Node.js to Bun for improved performance.
- Replaced npm install with bun install for dependency management.
- Updated build command to use Bun for building the application.
- Added new bun.lockb file to track Bun dependencies.
1808837298@qq.com 1 년 전
부모
커밋
cd192e2779
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      Dockerfile
  2. BIN
      web/bun.lockb

+ 3 - 3
Dockerfile

@@ -1,11 +1,11 @@
-FROM node:16 as builder
+FROM oven/bun:latest as builder
 
 WORKDIR /build
 COPY web/package.json .
-RUN npm install
+RUN bun install
 COPY ./web .
 COPY ./VERSION .
-RUN DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(cat VERSION) npm run build
+RUN DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(cat VERSION) bun run build
 
 FROM golang AS builder2
 

BIN
web/bun.lockb