File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM alpine:3.20
1
+ # hadolint ignore=DL3006
2
+ # hadolint ignore=DL3007
3
+ FROM cgr.dev/chainguard/wolfi-base:latest
2
4
3
5
WORKDIR /home
4
6
COPY ./scripts /home
@@ -7,13 +9,13 @@ ENV DO_CLI_TOKEN=<your-personal-access-token-here>
7
9
8
10
SHELL ["/bin/ash" , "-eo" , "pipefail" , "-c" ]
9
11
RUN apk update \
10
- && apk add bash=5.2.26-r0 --no-cache \
12
+ && apk add bash=5.2.32-r2 wget=1.24.5-r4 --no-cache \
11
13
&& wget -q https://api.github.com/repos/digitalocean/doctl/releases/latest -O - \
12
14
| grep -E "browser_download.*linux-amd64" \
13
15
| awk -F '[""]' '{print $4}' \
14
- | xargs wget -q -P /tmp/ \
16
+ | xargs wget -q --show-progress - P /tmp/ \
15
17
&& tar xf /tmp/doctl*.tar.gz -C /tmp \
16
- && mv /tmp/doctl /usr/local/ bin \
18
+ && mv /tmp/doctl /usr/bin \
17
19
&& chmod +x /home/cyber-do.sh \
18
20
&& doctl auth init --access-token ${DO_CLI_TOKEN} \
19
21
You can’t perform that action at this time.
0 commit comments