Skip to content

Commit b988b26

Browse files
author
Leo
committed
Update Go and set entrypoint instead of command
1 parent 2256352 commit b988b26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.13 as builder
1+
FROM golang:1.15 as builder
22

33
COPY . /opt
44
WORKDIR /opt
@@ -10,4 +10,4 @@ FROM scratch
1010
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
1111
COPY --from=builder /opt/bin/app /
1212

13-
CMD ["/app"]
13+
ENTRYPOINT ["/app"]

0 commit comments

Comments
 (0)