Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yacut committed Sep 13, 2022
1 parent 9de24d1 commit 8ba2b53
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ COPY . .

RUN make build

FROM consul:1.13.1 as consul

FROM alpine:3.16.2
COPY --from=builder /app/bin/consul-alerts /bin/consul-alerts
COPY --from=consul /consul /bin/consul

ENV CONSUL_VERSION=0.8.5
RUN apk upgrade --update --no-cache; \
apk add --update --no-cache curl util-linux; \
curl -sSLo /tmp/consul.zip https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip; \
unzip -d /bin /tmp/consul.zip; \
rm /tmp/consul.zip; \
apk del curl

EXPOSE 9000
CMD []
ENTRYPOINT [ "/bin/consul-alerts", "--alert-addr=0.0.0.0:9000" ]

0 comments on commit 8ba2b53

Please sign in to comment.