Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Dockerfile #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jleeh
Copy link

@jleeh jleeh commented Jun 19, 2019

Tested & ran it, all looks good. Possible to get an automated docker hub build?

Output:

Sending build context to Docker daemon  499.7kB
Step 1/8 : FROM golang:1.12-alpine as builder
 ---> c0e5aac9423b
Step 2/8 : RUN apk add --no-cache make curl git gcc musl-dev linux-headers
 ---> Using cache
 ---> cd609a027104
Step 3/8 : ADD . /go/src/github.com/CastawayLabs/cachet-monitor
 ---> c41f8a0d09d1
Step 4/8 : RUN cd /go/src/github.com/CastawayLabs/cachet-monitor/cli && go get && go build -o cachet-monitor
 ---> Running in 899b681afff7
Removing intermediate container 899b681afff7
 ---> 87c22efb0ca8
Step 5/8 : FROM alpine:latest
 ---> 3f53bb00af94
Step 6/8 : RUN apk add --no-cache ca-certificates
 ---> Using cache
 ---> ccef5ffb38d6
Step 7/8 : COPY --from=builder /go/src/github.com/CastawayLabs/cachet-monitor/cli/cachet-monitor /usr/local/bin/
 ---> 00d124e66f00
Step 8/8 : ENTRYPOINT ["cachet-monitor"]
 ---> Running in 56b5889cf8e8
Removing intermediate container 56b5889cf8e8
 ---> 71174342fab6
Successfully built 71174342fab6
Successfully tagged cachet-monitor:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant