Skip to content

Commit 781d682

Browse files
committed
fix: Update deps and remove plan text token method
1 parent 12df135 commit 781d682

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ FROM cgr.dev/chainguard/wolfi-base:latest
55
WORKDIR /home
66
COPY ./scripts /home
77

8-
ENV DO_CLI_TOKEN=<your-personal-access-token-here>
8+
ARG DO_CLI_TOKEN
9+
ENV DO_CLI_TOKEN=$DO_CLI_TOKEN
910

1011
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
1112
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 \
1314
&& wget -q https://api.github.com/repos/digitalocean/doctl/releases/latest -O - \
1415
| grep -E "browser_download.*linux-amd64" \
1516
| awk -F '[""]' '{print $4}' \
1617
| xargs wget -q --show-progress -P /tmp/ \
1718
&& tar xf /tmp/doctl*.tar.gz -C /tmp \
1819
&& mv /tmp/doctl /usr/bin \
1920
&& chmod +x /home/cyber-do.sh \
20-
&& doctl auth init --access-token ${DO_CLI_TOKEN} \
21+
&& doctl auth init --access-token "${DO_CLI_TOKEN}"
2122

2223
ENTRYPOINT ["/bin/bash"]
2324
CMD ["bash", "./cyber-do.sh"]

0 commit comments

Comments
 (0)