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

Reference Dockerfile #2

Open
lucymhdavies opened this issue May 4, 2018 · 3 comments
Open

Reference Dockerfile #2

lucymhdavies opened this issue May 4, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@lucymhdavies
Copy link
Contributor

i.e. something like

# Build our binary
from golang:1.10 as builder
RUN go get github.com/skybet/welcomebot
WORKDIR /go/src/github.com/skybet/welcomebot
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o welcomebot  .

# Build our final image
FROM alpine:latest
RUN apk add -U ca-certificates
COPY --from=builder /go/src/github.com/skybet/welcomebot/welcomebot /welcomebot
CMD ["/welcomebot"]

Then any deployments of welcomebot could source this image as the base, just overriding config file.

@lucymhdavies lucymhdavies added the enhancement New feature or request label May 4, 2018
@wheresalice
Copy link

The skybet user on Docker Hub has nothing but a big picture of @ls12styler so we probably want to talk to him about getting access to this account in order to publish this on there

@ls12styler
Copy link

That is weird. When checking 'Organizations', nothing shows up in the list :/

@ls12styler
Copy link

And I have zero recollection of creating an account for SBG :/

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

No branches or pull requests

3 participants