Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix the CI dockerhub release error #118

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ ENV GO111MODULE=on \
GOOS=linux \
GOARCH=amd64

# Get grpc
RUN go get google.golang.org/grpc
# Download dependencies
RUN go mod download

# Install protoc-gen-go
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.0
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0

# Copy the source and generate the .proto file
ADD . /go/src/github.com/casbin/casbin-server
Expand All @@ -40,9 +40,6 @@ RUN protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false \
--go-grpc_opt=paths=source_relative proto/casbin.proto

# Download dependencies
RUN go mod download

# Install app
RUN go install .

Expand Down
Loading