Skip to content

Commit

Permalink
Correct targetplatform value
Browse files Browse the repository at this point in the history
  • Loading branch information
aweakley committed Jun 24, 2024
1 parent d893de0 commit 04b5af7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ ARG TARGETPLATFORM

RUN echo "TARGETPLATFORM=${TARGETPLATFORM}"

RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then DOCKERIZE_ARCH=amd64; elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then DOCKERIZE_ARCH=armhf; else DOCKERIZE_ARCH=amd64; fi \
&& echo "TARGETPLATFORM=${TARGETPLATFORM}" > /tmp/log \
&& echo "DOCKERIZE_ARCH=${DOCKERIZE_ARCH}" >> /tmp/log \
&& echo "DOCKERIZE_VERSION=${DOCKERIZE_VERSION}" >> /tmp/log \
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then DOCKERIZE_ARCH=amd64; elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then DOCKERIZE_ARCH=armhf; else DOCKERIZE_ARCH=amd64; fi \
&& wget -nv -O - "https://github.com/jwilder/dockerize/releases/download/v${DOCKERIZE_VERSION}/dockerize-linux-${DOCKERIZE_ARCH}-v${DOCKERIZE_VERSION}.tar.gz" | tar -xz -C /usr/local/bin/ -f -

ENV PATH="$PATH:/opt/restic-pg-dump/bin"
Expand Down

0 comments on commit 04b5af7

Please sign in to comment.