-
Notifications
You must be signed in to change notification settings - Fork 1
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
71f4974
commit 37c0378
Showing
9 changed files
with
215 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
dist/ | ||
docker/ | ||
scripts/ | ||
tmp/ | ||
|
||
.air.toml | ||
.dockerignore | ||
.envrc | ||
.gitignore | ||
.gitlab-* | ||
default.nix | ||
README.md |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
dist/ | ||
|
||
.configs/ | ||
tmp/ | ||
tmp/ | ||
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
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,23 @@ | ||
FROM golang:alpine AS Builder | ||
|
||
ARG var_version=devel | ||
ENV VERSION=$var_version | ||
|
||
RUN mkdir -p /src | ||
RUN apk update && apk add --no-cache gcc musl-dev make | ||
RUN go install github.com/swaggo/swag/cmd/swag@latest | ||
|
||
COPY ./go.mod /src/stamus-ctl/go.mod | ||
COPY ./go.sum /src/stamus-ctl/go.sum | ||
WORKDIR /src/stamus-ctl | ||
RUN go mod download | ||
|
||
COPY . /src/stamus-ctl | ||
RUN swag init -g root.go -o cmd/docs -d cmd/daemon/run/ | ||
RUN CGO_ENABLED=1 make daemon | ||
|
||
FROM scratch | ||
COPY --from=Builder /src/stamus-ctl/dist /bin/ | ||
|
||
ENTRYPOINT [ "stamusd" ] | ||
CMD [ "run" ] |
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
Oops, something went wrong.