We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c5036 commit 1c74556Copy full SHA for 1c74556
Dockerfile
@@ -4,13 +4,13 @@ ADD go.mod /code/
4
ADD go.sum /code/
5
RUN go mod download
6
ADD ./ /code/
7
-RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /code/bot .
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /tmp/bot .
8
9
FROM alpine:3.6
10
EXPOSE 8080
11
WORKDIR /root/
12
RUN apk --no-cache --update add bash curl less jq openssl
13
-COPY --from=builder /code/bot /root/
+COPY --from=builder /tmp/bot /root/
14
HEALTHCHECK --interval=10s --timeout=3s \
15
CMD curl -f http://localhost:8080/health || exit 1
16
CMD exec /root/bot
0 commit comments