From 8dd625a75ce1438aae4d80871890a0b42dc725b5 Mon Sep 17 00:00:00 2001 From: NI Date: Fri, 17 Dec 2021 21:22:32 +0800 Subject: [PATCH] Print the version of important commands in Docker Image builing process --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index cf10a67..a6f5686 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,9 @@ RUN set -ex && \ ([ -z "$HTTPS_PROXY" ] || (git config --global https.proxy "$HTTPS_PROXY" && npm config set https-proxy "$HTTPS_PROXY")) && \ export PATH=$PATH:"$(go env GOPATH)/bin" && \ ([ -z "$CUSTOM_COMMAND" ] || (echo "Running custom command: $CUSTOM_COMMAND" && $CUSTOM_COMMAND)) && \ + git version && \ + go version && \ + npm version && \ echo '#!/bin/sh' > /install.sh && echo "npm install -g npm || (npm cache clean -f && false)" >> /install.sh && chmod +x /install.sh && /try.sh /install.sh && rm /install.sh # Build the base environment for application libraries