-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refit Docker build to match our current demands
- Loading branch information
Showing
4 changed files
with
33 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
# This file is a template, and might need editing before it works on your project. | ||
FROM golang:1.8-alpine AS builder | ||
# We'll likely need to add SSL root certificates | ||
RUN apk --no-cache add ca-certificates | ||
# Missing part for compiling the application by it self because it requires a sock | ||
# | ||
# NB! This file is a template and might need editing before it works on your project! | ||
# | ||
FROM golang:1.8 AS builder | ||
WORKDIR /go/src/github.com/ivanilves/lstags | ||
COPY . ./ | ||
RUN ln -nfs /bin/bash /bin/sh && make assemble | ||
FROM scratch | ||
# Since we started from scratch, we'll copy the SSL root certificates from the builder | ||
# Since we started from scratch, we'll copy following files from the builder: | ||
# * SSL root certificates bundle | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY lstags /usr/local/bin/lstags | ||
ENTRYPOINT [ "/usr/local/bin/lstags" ] | ||
# * compiled lstags binary | ||
COPY --from=builder /go/src/github.com/ivanilves/lstags/lstags /lstags | ||
ENTRYPOINT [ "/lstags" ] | ||
CMD ["--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.