我在 Windows 上有 gcc。C:\Users\jkrov>gcc --versiongcc (MinGW.org GCC-8.2.0-5) 8.2.0Copyright (C) 2018 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.我的碼頭文件:FROM golang:alpineRUN mkdir /appWORKDIR /appADD . /appRUN go build -o main .EXPOSE 8080CMD [ "app/main" ]當(dāng)我嘗試構(gòu)建圖像時(shí)出現(xiàn)錯(cuò)誤:exec: "gcc": executable file not found in $PATH
嘗試構(gòu)建 docker 映像時(shí),我得到“”gcc“:$PATH 中找不到可執(zhí)行文件”
呼喚遠(yuǎn)方
2022-04-26 15:24:01