sft0farid commited on
Commit
9e68154
Β·
verified Β·
1 Parent(s): 3e76aa6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -9,13 +9,15 @@ RUN git clone https://github.com/Quorinex/Kiro-Go.git /src \
9
 
10
  # Builder 2: New API
11
  FROM golang:1.22-alpine AS newapi-builder
12
- RUN apk add --no-cache git nodejs npm
13
- RUN npm install -g pnpm
 
 
14
  RUN git clone https://github.com/QuantumNous/new-api.git /src
15
  WORKDIR /src/web
16
- RUN pnpm install && pnpm run build
17
  WORKDIR /src
18
- RUN go build -o /new-api .
19
 
20
  # ─────────────────────────────────────────────
21
  FROM python:3.11-slim
 
9
 
10
  # Builder 2: New API
11
  FROM golang:1.22-alpine AS newapi-builder
12
+ RUN apk add --no-cache git curl unzip
13
+ # УстанавливаСм bun
14
+ RUN curl -fsSL https://bun.sh/install | sh
15
+ ENV PATH="/root/.bun/bin:$PATH"
16
  RUN git clone https://github.com/QuantumNous/new-api.git /src
17
  WORKDIR /src/web
18
+ RUN bun install && DISABLE_ESLINT_PLUGIN='true' bun run build
19
  WORKDIR /src
20
+ RUN go build -ldflags "-s -w" -o /new-api .
21
 
22
  # ─────────────────────────────────────────────
23
  FROM python:3.11-slim