rr1 commited on
Commit
cf3d478
·
1 Parent(s): 80f9ac8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,5 +1,9 @@
1
- FROM alpine:3.16.6
2
- RUN apk update && apk add curl && apk add tar
 
 
 
 
3
  RUN version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/gngpp/ninja/releases/latest)) \
4
  && base_url="https://github.com/pandora-next/deploy/releases/expanded_assets/$version" \
5
  && latest_url="https://github.com/$(curl -sL $base_url | grep "href.*x86_64.*musl\.tar.gz" | sed 's/.*href="//' | sed 's/".*//')" \
 
1
+ FROM golang:alpine AS builder
2
+
3
+ # 安装必要的工具
4
+ RUN apk update && apk add --no-cache \
5
+ curl \
6
+ tar
7
  RUN version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/gngpp/ninja/releases/latest)) \
8
  && base_url="https://github.com/pandora-next/deploy/releases/expanded_assets/$version" \
9
  && latest_url="https://github.com/$(curl -sL $base_url | grep "href.*x86_64.*musl\.tar.gz" | sed 's/.*href="//' | sed 's/".*//')" \