Docker file Error with Run go install
Darkluna999 opened this issue · comments
docker build -t gpt-v4 ./ChatGPT-Proxy-V4
[+] Building 1.8s (5/5) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 136B 0.1s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/golang:latest 0.3s
=> CACHED [1/2] FROM docker.io/library/golang@sha256:344193a70dc3588452ea39b4a1e465a8d3c91f788ae053f7ee168cebf18e0a50 0.0s
=> ERROR [2/2] RUN go install github.com/acheong08/ChatGPT-Proxy-V4@latest 1.2s
------
> [2/2] RUN go install github.com/acheong08/ChatGPT-Proxy-V4@latest:
#0 1.102 go: downloading github.com/acheong08/ChatGPT-Proxy-V4 v0.0.0-20230630052754-859e6ae68862
#0 1.163 go: github.com/acheong08/ChatGPT-Proxy-V4@latest: github.com/acheong08/ChatGPT-Proxy-V4@v0.0.0-20230630052754-859e6ae68862: parsing go.mod:
#0 1.163 module declares its path as: ChatGPTProxy
#0 1.163 but was required as: github.com/acheong08/ChatGPT-Proxy-V4
------
Dockerfile:2
--------------------
1 | FROM golang
2 | >>> RUN go install github.com/acheong08/ChatGPT-Proxy-V4@latest
3 | CMD [ "ChatGPT-Proxy-V4" ]
4 |
--------------------
ERROR: failed to solve: process "/bin/sh -c go install github.com/acheong08/ChatGPT-Proxy-V4@latest" did not complete successfully: exit code: 1
Hey, the repair response is fast~
But it is still Error @acheong08
=> ERROR [2/2] RUN go install github.com/acheong08/ChatGPTProxy@latest
------
> [2/2] RUN go install github.com/acheong08/ChatGPTProxy@latest:
#0 12.30 go: downloading github.com/acheong08/ChatGPTProxy v0.0.0-20230630070425-3abf23c519db
#0 12.43 go: github.com/acheong08/ChatGPTProxy@latest: github.com/acheong08/ChatGPTProxy@v0.0.0-20230630070425-3abf23c519db: parsing go.mod:
#0 12.43 module declares its path as: ChatGPTProxy
#0 12.43 but was required as: github.com/acheong08/ChatGPTProxy
------
Dockerfile:2
--------------------
1 | FROM golang
2 | >>> RUN go install github.com/acheong08/ChatGPTProxy@latest
3 | CMD [ "ChatGPT-Proxy-V4" ]
4 |