-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.dive
25 lines (23 loc) · 1012 Bytes
/
Dockerfile.dive
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ------------------------
FROM golang:alpine as dive
RUN apk update\
&& apk add git make bash ncurses curl\
#&& cd /go/src\
#&& git clone https://github.com/wagoodman/dive.git\
&& git clone https://github.com/nmaguiar/dive.git\
&& cd dive\
&& git checkout v0.12.0\
&& make bootstrap\
#&& mkdir .tmp\
#&& go install github.com/goreleaser/goreleaser@latest\
#&& ln -s /go/bin/goreleaser .tmp/goreleaser\
&& curl https://ojob.io/getStatic.sh | sh\
&& ./oaf -c "var o=io.readFileYAML('.goreleaser.yaml');delete o.dockers;o.builds[0].goos=['linux'];io.writeFileYAML('.goreleaser.yaml',o)"\
&& make build\
&& cp snapshot/dive_linux_arm64/dive /dive_linux_arm64\
&& cp snapshot/dive_linux_amd64_v1/dive /dive_linux_amd64
# && arch=$(uname -m) && if [ "$arch" == "aarch64" ]; then cp snapshot/dive_linux_arm64/dive /dive; elif [ "$arch" == "x86_64" ]; then cp snapshot/dive_linux_amd64_v1/dive /dive; fi
# ---------------------
# FROM openaf/oaf as main
#
# #COPY --from=dive /dive /usr/bin/dive