Skip to content

Commit 2fc7445

Browse files
committed
fix: Update base image to Wolfi and update dependencies versions
1 parent caf24ff commit 2fc7445

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM alpine:3.20
1+
# hadolint ignore=DL3006
2+
# hadolint ignore=DL3007
3+
FROM cgr.dev/chainguard/wolfi-base:latest
24

35
WORKDIR /home
46
COPY ./scripts /home
@@ -7,13 +9,13 @@ ENV DO_CLI_TOKEN=<your-personal-access-token-here>
79

810
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
911
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 \
1113
&& wget -q https://api.github.com/repos/digitalocean/doctl/releases/latest -O - \
1214
| grep -E "browser_download.*linux-amd64" \
1315
| awk -F '[""]' '{print $4}' \
14-
| xargs wget -q -P /tmp/ \
16+
| xargs wget -q --show-progress -P /tmp/ \
1517
&& tar xf /tmp/doctl*.tar.gz -C /tmp \
16-
&& mv /tmp/doctl /usr/local/bin \
18+
&& mv /tmp/doctl /usr/bin \
1719
&& chmod +x /home/cyber-do.sh \
1820
&& doctl auth init --access-token ${DO_CLI_TOKEN} \
1921

0 commit comments

Comments
 (0)