Skip to content

Commit

Permalink
refactor(docker): simplify conditional APK installation
Browse files Browse the repository at this point in the history
Changed the conditional check for GOARCH value from a single line using '&&' to an 'if' statement for better readability.

Co-authored-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
Leke-Ariyo and dereknola authored Aug 25, 2023
1 parent 999e919 commit 9b15fcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ RUN apk -U --no-cache add \
libseccomp-dev libseccomp-static make libuv-static sqlite-dev sqlite-static libselinux \
libselinux-dev zlib-dev zlib-static zstd pigz alpine-sdk binutils-gold btrfs-progs-dev \
btrfs-progs-static gawk yq \
&& [ "$(go env GOARCH)" = "amd64" ] && apk -U --no-cache add mingw-w64-gcc || true
&& if [ "$(go env GOARCH)" = "amd64" ]; then \
apk -U --no-cache add mingw-w64-gcc; \
fi

# Install AWS CLI
RUN python3 -m pip install awscli
Expand Down

0 comments on commit 9b15fcf

Please sign in to comment.