-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Quentin Guidée <[email protected]>
- Loading branch information
1 parent
8eb9c51
commit 6465b1c
Showing
2 changed files
with
25 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS build-stage | ||
|
||
WORKDIR /build | ||
|
||
COPY . . | ||
|
||
RUN apk add --no-cache git | ||
|
||
RUN go install -mod=mod github.com/githubnemo/CompileDaemon | ||
|
||
ARG APP_KIND=main | ||
|
||
EXPOSE 80 7500 7502 7504 7505 7506 7508 7510 7512 7514 7516 7518 | ||
|
||
ENTRYPOINT CompileDaemon -build='go build ./cmd/'"$APP_KIND" -directory=. |