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