-
Notifications
You must be signed in to change notification settings - Fork 36
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
1 parent
c24b7de
commit 0306165
Showing
2 changed files
with
23 additions
and
4 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,10 +1,18 @@ | ||
FROM golang as builder | ||
FROM golang:1.12 as builder | ||
|
||
RUN go get github.com/kaishuu0123/erd-go | ||
WORKDIR /app | ||
|
||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY . . | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux go build | ||
|
||
FROM alpine | ||
|
||
RUN apk --no-cache add ca-certificates | ||
|
||
WORKDIR /erd | ||
COPY --from=builder /go/bin/erd-go . | ||
COPY --from=builder /app/erd-go . | ||
|
||
ENTRYPOINT ["/erd/erd-go"] |
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