sft0farid commited on
Commit
117c57d
·
verified ·
1 Parent(s): 4dea151

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -7
Dockerfile CHANGED
@@ -9,17 +9,24 @@ FROM ghcr.io/quorinex/kiro-go:latest AS kirogo-source
9
  FROM python:3.11-slim
10
 
11
  # 1. Системные зависимости + Node.js
12
- RUN apt-get update && apt-get install -y curl gnupg wget supervisor \
13
  && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
14
  && apt-get install -y nodejs \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
- # 2. zrok
18
- RUN wget -q https://github.com/openziti/zrok/releases/download/v0.4.42/zrok_0.4.42_linux_amd64.tar.gz \
19
- && tar -xzf zrok_0.4.42_linux_amd64.tar.gz zrok \
20
- && mv zrok /usr/local/bin/ \
21
- && chmod +x /usr/local/bin/zrok \
22
- && rm zrok_0.4.42_linux_amd64.tar.gz
 
 
 
 
 
 
 
23
 
24
  # 3. Копируем из готовых образов
25
  COPY --from=newapi-source /new-api /usr/local/bin/new-api
 
9
  FROM python:3.11-slim
10
 
11
  # 1. Системные зависимости + Node.js
12
+ RUN apt-get update && apt-get install -y curl jq gnupg supervisor \
13
  && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
14
  && apt-get install -y nodejs \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
+ # 2. zrok (latest)
18
+ RUN ZROK_VERSION=$(curl -fsSL https://api.github.com/repos/openziti/zrok/releases/latest | jq -r .tag_name) \
19
+ && ARCH=$(dpkg --print-architecture) \
20
+ && case "$ARCH" in \
21
+ amd64) GOARCH=amd64 ;; \
22
+ arm64) GOARCH=arm64 ;; \
23
+ armhf) GOARCH=armv7 ;; \
24
+ *) echo "Unsupported arch: $ARCH"; exit 1 ;; \
25
+ esac \
26
+ && curl -fsSL \
27
+ "https://github.com/openziti/zrok/releases/download/${ZROK_VERSION}/zrok_${ZROK_VERSION#v}_linux_${GOARCH}.tar.gz" \
28
+ | tar -xz -C /usr/local/bin zrok \
29
+ && chmod +x /usr/local/bin/zrok
30
 
31
  # 3. Копируем из готовых образов
32
  COPY --from=newapi-source /new-api /usr/local/bin/new-api