Update Go and set entrypoint instead of command

This commit is contained in:
Leo 2021-01-04 01:10:09 +01:00
parent 2256352668
commit b988b26a1d
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.13 as builder
FROM golang:1.15 as builder
COPY . /opt
WORKDIR /opt
@ -10,4 +10,4 @@ FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /opt/bin/app /
CMD ["/app"]
ENTRYPOINT ["/app"]