-
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.
Merge pull request #92 from solidnerd/feature/Dockerfile
Add direct support for docker
- Loading branch information
Showing
4 changed files
with
79 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 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 | ||
FROM scratch | ||
# Since we started from scratch, we'll copy the SSL root certificates from the builder | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY lstags /usr/local/bin/lstags | ||
ENTRYPOINT [ "/usr/local/bin/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 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# Workaround because the Makefile doesn't recognize the bash | ||
# This should be fixed in the Makefile and not in the directory | ||
ln -nfs /bin/bash /bin/sh | ||
make all |