diff --git a/Dockerfile b/Dockerfile index 9ea7e87..b3918f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine +FROM golang:1.18-alpine COPY entrypoint.sh /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index fafc13f..1b198ad 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,4 +17,7 @@ fi export GO111MODULE=on export GOPROXY="$INPUT_GOPROXY" -go get -d "$PACKAGE@$VERSION" +mkdir dummy +cd dummy +go mod init dummy +go get "$PACKAGE@$VERSION"