File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ FROM node:18@sha256:d0bbfdbad0bff8253e6159dcbee42141db4fc309365d5b8bcfce46ed7156
5
5
WORKDIR /headlamp-plugins
6
6
7
7
# Add a build argument for the desired plugin to be built
8
+ # Add multi-arch build arguments
8
9
ARG PLUGIN
10
+ ARG TARGETPLATFORM
11
+ ARG TARGETOS
12
+ ARG TARGETARCH
9
13
10
14
# Check if the PLUGIN argument is provided
11
15
RUN if [ -z "$PLUGIN" ]; then \
@@ -41,6 +45,7 @@ COPY --from=builder /headlamp-plugins/build/ /plugins/
41
45
42
46
LABEL org.opencontainers.image.source=https://github.com/headlamp-k8s/plugins
43
47
LABEL org.opencontainers.image.licenses=MIT
48
+ LABEL org.opencontainers.image.platform=$TARGETPLATFORM
44
49
45
50
# Set the default command to list the installed plugins
46
- CMD ["sh" , "-c" , "echo Plugins installed at /plugins/:; ls /plugins/" ]
51
+ CMD ["sh" , "-c" , "echo Plugins installed at /plugins/:; ls /plugins/" ]
You can’t perform that action at this time.
0 commit comments