Skip to content

Commit

Permalink
fix: add syntax directive to Dockerfile for heredocs support
Browse files Browse the repository at this point in the history
  • Loading branch information
markin-io authored and rvolosatovs committed Nov 25, 2022
1 parent 3e18985 commit f092d99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1.4

ARG ALPINE_VERSION
ARG GO_VERSION
ARG RUST_VERSION
Expand Down Expand Up @@ -294,7 +296,7 @@ RUN xx-verify /out/usr/bin/protoc-gen-lint


FROM --platform=$BUILDPLATFORM alpine_host as upx
RUN mkdir -p /upx
RUN mkdir -p /upx
ARG BUILDARCH BUILDOS UPX_VERSION
RUN if ! [ "${TARGETARCH}" = "arm64" ]; then curl -sSL https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-${BUILDARCH}_${BUILDOS}.tar.xz | tar xJ --strip 1 -C /upx; fi
RUN if ! [ "${TARGETARCH}" = "arm64" ]; then install -D /upx/upx /usr/local/bin/upx; fi
Expand Down

0 comments on commit f092d99

Please sign in to comment.