Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
Fixed type in MC_ARCH for linux/arm64
  • Loading branch information
Salvoxia committed Jun 7, 2024
1 parent 4cfb824 commit ed7db77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM alpine:3.20
LABEL maintainer="Salvoxia <[email protected]>"
ARG TARGETPLATFORM
RUN echo "I'm building for $TARGETPLATFORM"

# Determine Minio Client Architecture sub-URL
RUN case "${TARGETPLATFORM}" in \
"linux/amd64") MC_ARCH=linux-amd64 ;; \
"linux/arm64") MC_ARCH=linx-arm64 ;; \
"linux/arm64/v8") MC_ARCH=linx-arm64 ;; \
"linux/arm64") MC_ARCH=linux-arm64 ;; \
"linux/arm64/v8") MC_ARCH=linux-arm64 ;; \
"linux/arm/v7") MC_ARCH=linux-arm ;; \
*) exit 1 ;; \
esac; \
Expand Down

0 comments on commit ed7db77

Please sign in to comment.