forked from tinkerbell/hegel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
- Loading branch information
Gianluca Arbezzano
committed
Oct 28, 2020
1 parent
aeb1cb7
commit 2cd8b6c
Showing
3 changed files
with
13 additions
and
19 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,2 +1 @@ | ||
* | ||
!hegel |
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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
FROM golang:1.15-alpine | ||
COPY . /usr/myapp | ||
WORKDIR /usr/myapp | ||
RUN mkdir bin && go build -o ./bin ./... | ||
|
||
FROM alpine:3.7 | ||
|
||
EXPOSE 50060 | ||
EXPOSE 50061 | ||
ENTRYPOINT [ "cmd/hegel" ] | ||
ENTRYPOINT ["/usr/bin/hegel"] | ||
|
||
RUN apk add --update --upgrade ca-certificates | ||
ADD hegel cmd/hegel | ||
COPY --from=0 /usr/myapp/bin/hegel /usr/bin/hegel |