forked from P3GLEG/Whaler
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bill Wang
committed
Jan 9, 2024
1 parent
c60393d
commit 3693259
Showing
5 changed files
with
52 additions
and
10 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
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 |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
.idea/ | ||
|
||
WhaleTail | ||
functions.sh |
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,10 +1,10 @@ | ||
FROM golang AS builder | ||
FROM golang:1.14.4 AS builder | ||
ADD ./ /root/whaler_build | ||
WORKDIR /root/whaler_build | ||
RUN export CGO_ENABLED=0 && go build . | ||
RUN cp whaler /root/whaler | ||
|
||
FROM alpine | ||
WORKDIR /root/ | ||
COPY --from=builder /root/whaler /usr/bin/whaler | ||
ENTRYPOINT ["/usr/bin/whaler"] | ||
COPY --from=builder /root/whaler . | ||
ENTRYPOINT ["./whaler"] |
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