Browse Source

Merge pull request #43763 from thaJeztah/cleanup_e2e

Dockerfile: remove redundant variable, and upgrade to latest 1.x stable syntax
Sebastiaan van Stijn 3 years ago
parent
commit
abaf69481f
2 changed files with 3 additions and 4 deletions
  1. 1 1
      Dockerfile
  2. 2 3
      Dockerfile.e2e

+ 1 - 1
Dockerfile

@@ -1,4 +1,4 @@
-# syntax=docker/dockerfile:1.3
+# syntax=docker/dockerfile:1
 
 ARG CROSS="false"
 ARG SYSTEMD="false"

+ 2 - 3
Dockerfile.e2e

@@ -26,10 +26,9 @@ RUN /download-frozen-image-v2.sh /build \
 # See also frozenImages in "testutil/environment/protect.go" (which needs to be updated when adding images to this list)
 
 FROM base AS dockercli
-ENV INSTALL_BINARY_NAME=dockercli
 COPY hack/dockerfile/install/install.sh ./install.sh
-COPY hack/dockerfile/install/$INSTALL_BINARY_NAME.installer ./
-RUN PREFIX=/build ./install.sh $INSTALL_BINARY_NAME
+COPY hack/dockerfile/install/dockercli.installer ./
+RUN PREFIX=/build ./install.sh dockercli
 
 # TestDockerCLIBuildSuite dependency
 FROM base AS contrib