-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1129 from slntopp/dev
dev
- Loading branch information
Showing
57 changed files
with
2,669 additions
and
915 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
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 @@ | ||
ARG IMAGE_TAG=latest | ||
ARG ARCH=amd64 | ||
FROM ghcr.io/slntopp/nocloud/base:${IMAGE_TAG} as builder | ||
|
||
RUN CGO_ENABLED=0 GOARCH=${ARCH} go build -ldflags="-s -w" -buildvcs=false ./cmd/oauth2 | ||
RUN upx ./oauth2 | ||
|
||
RUN adduser -SD nocloud | ||
|
||
FROM scratch | ||
WORKDIR / | ||
COPY --from=builder /go/src/github.com/slntopp/nocloud/oauth2 /oauth2 | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /etc/passwd /etc/passwd | ||
|
||
HEALTHCHECK NONE | ||
|
||
USER nocloud | ||
EXPOSE 8000 | ||
LABEL org.opencontainers.image.source https://github.com/slntopp/nocloud | ||
LABEL nocloud.update "true" | ||
|
||
ENTRYPOINT ["/oauth2"] |
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.