-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(wg-api): move main package to root for easier builds
- Loading branch information
Showing
4 changed files
with
9 additions
and
12 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,11 +1,11 @@ | ||
FROM golang:1.17 AS builder | ||
FROM golang:1.19 AS builder | ||
|
||
WORKDIR /go/src/github.com/jamescun/wg-api | ||
COPY . /go/src/github.com/jamescun/wg-api | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux go build -o wg-api cmd/wg-api.go | ||
RUN CGO_ENABLED=0 GOOS=linux go build -o wg-api main.go | ||
|
||
|
||
FROM scratch | ||
COPY --from=builder /go/src/github.com/jamescun/wg-api/wg-api /bin/wg-api | ||
CMD ["wg-api"] | ||
COPY --from=builder /go/src/github.com/jamescun/wg-api/wg-api /wg-api | ||
ENTRYPOINT ["/wg-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
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 was deleted.
Oops, something went wrong.