format: Use go modules

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
This commit is contained in:
Dave Tucker 2021-04-30 10:53:11 +01:00
parent 013416f923
commit 2cf5cf65b0

View File

@ -22,7 +22,7 @@ ENV GOPATH=/go PATH=$PATH:/go/bin
# Hack to work around an issue with go on arm64 requiring gcc
RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
COPY format.go /go/src/format/
COPY . /go/src/format/
RUN go-compile.sh /go/src/format
FROM scratch