forked from kovetskiy/mark
-
Notifications
You must be signed in to change notification settings - Fork 0
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 kovetskiy#255 from mrueg/build-image
Build image
- Loading branch information
Showing
4 changed files
with
27 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM golang:latest | ||
FROM golang:1.19.6 as builder | ||
ENV GOPATH="/go" | ||
WORKDIR /go/src/github.com/kovetskiy/mark | ||
COPY / . | ||
RUN make get | ||
RUN make build | ||
RUN make get \ | ||
&& make build | ||
|
||
FROM alpine:latest | ||
RUN apk --no-cache add ca-certificates bash git | ||
COPY --from=0 /go/src/github.com/kovetskiy/mark/mark /bin/ | ||
FROM alpine:3.17 | ||
RUN apk --no-cache add ca-certificates bash sed git | ||
COPY --from=builder /go/src/github.com/kovetskiy/mark/mark /bin/ | ||
WORKDIR /docs |
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