@@ -22,8 +22,7 @@ FROM alpine:3.18.2
22
22
# Create project directory (workdir)
23
23
WORKDIR /app
24
24
25
- RUN apk update && apk add protoc && apk add openjdk8
26
- RUN apk update && apk add bash && apk add curl && apk add jq && apk add --update go \
25
+ RUN apk update && apk add protoc && apk add openjdk8 && apk add make && apk add bash && apk add curl && apk add jq && apk add --update go \
27
26
&& curl https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/bin/utils/openapi-generator-cli.sh \
28
27
> /app/openapi-generator-cli \
29
28
&& chmod u+x /app/openapi-generator-cli \
@@ -41,6 +40,7 @@ RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
41
40
&& echo "Cleaning and setting links" \
42
41
&& rm -f /tmp/apache-maven.tar.gz \
43
42
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
43
+
44
44
ENV MAVEN_HOME /usr/share/maven
45
45
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
46
46
@@ -52,6 +52,8 @@ RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
52
52
# test if the below command avoids loading the files later.
53
53
RUN /app/openapi-generator-cli version
54
54
RUN go version
55
+ RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
56
+ RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
55
57
COPY --from=builder /app/core /
56
58
COPY templates /app/templates
57
59
# Application port (optional)
0 commit comments