Skip to content

Commit

Permalink
Merge pull request #185 from 0xff-dev/main
Browse files Browse the repository at this point in the history
fix: graphql-server can't run
  • Loading branch information
bjwswang authored Nov 7, 2023
2 parents d353b16 + 33c7ccc commit 6618eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ COPY graphql-server/ graphql-server/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o graphql-server graphql-server/go-server/main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o graphql-server-bin graphql-server/go-server/main.go
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
COPY --from=builder /workspace/graphql-server .
COPY --from=builder /workspace/graphql-server-bin ./graphql-server
USER 65532:65532

ENTRYPOINT ["/manager"]

0 comments on commit 6618eac

Please sign in to comment.