I try to run my Dockerfile on my local machine, and it is running perfectly. But when I tried to docker build on my VPS, it was stuck when downloaded the last package.
I assume this because can’t export to the docker image. Both VPS (512ram & 10G storage) and my local machine had the same version and build version, and the other docker image worked but not on this project (I tried to remove the other docker image, still not working)
COPY . .
RUN go build -o main main.go
Can someone explain what could possibly be the problem?