Update Dockerfile
Browse files- 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
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
RUN git clone https://github.com/QuantumNous/new-api.git /src
|
| 15 |
WORKDIR /src/web
|
| 16 |
-
RUN
|
| 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
|