Skip to content

Commit

Permalink
dockerfile: report unsupported TARGETPLATFORM
Browse files Browse the repository at this point in the history
  • Loading branch information
thebendavis committed Oct 23, 2024
1 parent 6505a3d commit cd097a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM ubuntu:20.04 AS gitbase

ARG TARGETPLATFORM
RUN if [ "${TARGETPLATFORM}" != "linux/amd64" ]; then echo "Only linux/amd64 is supported, use '--platform linux/amd64'"; exit 1; fi
RUN if [ "${TARGETPLATFORM}" != "linux/amd64" ]; then echo "TARGETPLATFORM '${TARGETPLATFORM}' is not supported, use '--platform linux/amd64'"; exit 1; fi

RUN apt update && apt install -y ssh
RUN apt install -y git
Expand Down

0 comments on commit cd097a5

Please sign in to comment.