-
Notifications
You must be signed in to change notification settings - Fork 3
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
40c992e
commit a0284c1
Showing
15 changed files
with
210 additions
and
123 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 |
---|---|---|
@@ -1,36 +1,24 @@ | ||
# go1.19.8 linux/amd64 | ||
FROM docker.io/golang@sha256:9f2dd04486e84eec72d945b077d568976981d9afed8b4e2aeb08f7ab739292b3 as build | ||
|
||
WORKDIR /go/src/app | ||
COPY . . | ||
|
||
RUN go mod download | ||
RUN go vet -v | ||
RUN go test -v | ||
RUN GOOS=linux GOARCH=amd64 go build -buildvcs=false -o /go/bin/server | ||
|
||
RUN GOOS=linux GOARCH=amd64 go build -o /go/bin/server | ||
RUN chown root:root /go/bin/server && \ | ||
chown -R root:root /go/src/app | ||
|
||
FROM gcr.io/distroless/base@sha256:75f63d4edd703030d4312dc7528a349ca34d48bec7bd754652b2d47e5a0b7873 | ||
# base-debian11-root | ||
FROM gcr.io/distroless/base-debian11@sha256:df13a91fd415eb192a75e2ef7eacf3bb5877bb05ce93064b91b83feef5431f37 | ||
|
||
LABEL "tee.launch_policy.allow_cmd_override"="false" | ||
LABEL "tee.launch_policy.log_redirect"="always" | ||
|
||
COPY --from=build /go/bin/server / | ||
COPY --from=build /go/bin/server /server | ||
COPY --from=build /go/src/app/config.json /config.json | ||
|
||
COPY --from=build /go/src/app/certs/root-ca-operator.crt /root-ca-operator.crt | ||
COPY --from=build /go/src/app/certs/tee-operator.crt /tee-operator.crt | ||
COPY --from=build /go/src/app/certs/tee-operator.key /tee-operator.key | ||
|
||
COPY --from=build /go/src/app/certs/root-ca-collaborator1.crt /root-ca-collaborator1.crt | ||
COPY --from=build /go/src/app/certs/tee-collaborator1.crt /tee-collaborator1.crt | ||
COPY --from=build /go/src/app/certs/tee-collaborator1.key /tee-collaborator1.key | ||
|
||
COPY --from=build /go/src/app/certs/root-ca-collaborator2.crt /root-ca-collaborator2.crt | ||
COPY --from=build /go/src/app/certs/tee-collaborator2.crt /tee-collaborator2.crt | ||
COPY --from=build /go/src/app/certs/tee-collaborator2.key /tee-collaborator2.key | ||
COPY --from=build /go/src/app/certs /certs | ||
|
||
EXPOSE 8081 | ||
|
||
ENTRYPOINT ["/server"] | ||
|
||
ENTRYPOINT ["./server"] | ||
CMD [] |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.