Skip to content

Commit 1c74556

Browse files
authored
dockerfile fixed (#3)
1 parent 03c5036 commit 1c74556

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
@@ -4,13 +4,13 @@ ADD go.mod /code/
44
ADD go.sum /code/
55
RUN go mod download
66
ADD ./ /code/
7-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /code/bot .
7+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /tmp/bot .
88

99
FROM alpine:3.6
1010
EXPOSE 8080
1111
WORKDIR /root/
1212
RUN apk --no-cache --update add bash curl less jq openssl
13-
COPY --from=builder /code/bot /root/
13+
COPY --from=builder /tmp/bot /root/
1414
HEALTHCHECK --interval=10s --timeout=3s \
1515
CMD curl -f http://localhost:8080/health || exit 1
1616
CMD exec /root/bot

0 commit comments

Comments
 (0)