Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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/".*//')" \
|