Dockerfile: Setting Up Go Environment and Managing APT Cache
The line 'ENV GO111MODULE=off' does not have any syntax errors and should work as intended. However, it sets the environment variable GO111MODULE to 'off', which disables Go modules. Depending on the requirements of your project, this may or may not be a problem. If your project uses Go modules, you should set GO111MODULE to 'on' instead.
原文地址: https://www.cveoy.top/t/topic/gRfJ 著作权归作者所有。请勿转载和采集!