Skip to content

Commit

Permalink
fixed dockerfile issue
Browse files Browse the repository at this point in the history
Signed-off-by: Ved Ratan <[email protected]>
  • Loading branch information
VedRatan committed Feb 26, 2024
1 parent aa37a4e commit 5630e8a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sentryflow/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Builder

FROM golang:1.19-alpine3.17 as builder
FROM golang:1.22.0-alpine3.19 as builder

RUN apk --no-cache update
RUN apk add --no-cache git clang llvm make gcc protobuf make
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@

### Builder

FROM golang:1.19-alpine3.17 as builder
FROM golang:1.22.0-alpine3.19 as builder

RUN apk --no-cache update
RUN apk add --no-cache git clang llvm make gcc protobuf
RUN go install github.com/golang/protobuf/protoc-gen-go@latest
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

RUN mkdir /app
RUN mkdir /protobuf

WORKDIR /protobuf

COPY /protobuf .
RUN go mod tidy
RUN make build

WORKDIR /app

WORKDIR /app
COPY /sentryflow-clients/log-client .

RUN go install github.com/golang/protobuf/protoc-gen-go@latest
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
RUN go mod tidy
RUN go build -o log-client

### Make executable image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@

### Builder

FROM golang:1.19-alpine3.17 as builder
FROM golang:1.22.0-alpine3.19 as builder

RUN apk --no-cache update
RUN apk add --no-cache git clang llvm make gcc protobuf
RUN go install github.com/golang/protobuf/protoc-gen-go@latest
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

RUN mkdir /app
RUN mkdir /protobuf

WORKDIR /protobuf

COPY /protobuf .
RUN go mod tidy
RUN make build

WORKDIR /app

COPY /sentryflow-clients/mongo-client .

RUN go install github.com/golang/protobuf/protoc-gen-go@latest
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

RUN go build -o mongo-client

### Make executable image
Expand Down

0 comments on commit 5630e8a

Please sign in to comment.