You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Dockerfile
+4-2
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,15 @@
1
1
FROM alpine:3.17
2
2
MAINTAINER Serhiy Mitrovtsiy <mitrovtsiy@ukr.net>
3
3
4
+
ARG TARGETPLATFORM
4
5
ARG KUBE_VERSION="v1.31.1"
5
6
6
7
COPY entrypoint.sh /entrypoint.sh
7
8
8
-
RUN chmod +x /entrypoint.sh && \
9
+
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then ARCHITECTURE=arm; elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then ARCHITECTURE=arm64; else ARCHITECTURE=amd64; fi && \
0 commit comments