-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into dev
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 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,10 @@ | ||
FROM golang:latest | ||
|
||
FROM golang:latest AS build | ||
WORKDIR /go/src/thola | ||
COPY . . | ||
|
||
RUN go get -d -v . | ||
RUN go generate | ||
RUN go install -v . | ||
RUN CGO_ENABLED=0 go build -v -o thola . | ||
|
||
FROM alpine:latest | ||
COPY --from=build /go/src/thola/thola . | ||
|
||
ENTRYPOINT ["thola", "api"] | ||
ENTRYPOINT ["./thola", "api"] |
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