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
Showing
2 changed files
with
26 additions
and
0 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,23 @@ | ||
FROM golang:1.13-alpine3.10 as builder | ||
|
||
ARG Version | ||
|
||
RUN apk --no-cache add git && \ | ||
apk --update add alpine-sdk && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
WORKDIR /sources | ||
COPY . . | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -ldflags "-X main.Version=sources-$Version -s -w" -o monday /sources/cmd | ||
|
||
FROM alpine:3.10 | ||
|
||
LABEL name="monday" | ||
LABEL description="A dev tool for microservice developers to run local applications and/or forward others from/to Kubernetes SSH or TCP" | ||
|
||
WORKDIR / | ||
|
||
COPY --from=builder /sources/monday monday | ||
|
||
ENTRYPOINT ["/monday"] |
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