snkalinin commented on a change in pull request #15751:
URL: https://github.com/apache/beam/pull/15751#discussion_r737658290



##########
File path: playground/backend/containers/java/Dockerfile
##########
@@ -16,4 +16,36 @@
 # limitations under the License.
 ###############################################################################
 
-#Dokerfile to set up the Beam Java SDK
\ No newline at end of file
+FROM golang:1.17-buster AS build
+
+# Setup Go Environment
+ENV GOPATH /go
+ENV PATH $GOPATH/bin:$PATH
+RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
+RUN go install google.golang.org/protobuf/cmd/[email protected] &&\
+    go install google.golang.org/grpc/cmd/[email protected]
+
+# Prepare Application
+COPY src /go/src/playground/backend
+COPY playground /go/src/playground/playground
+WORKDIR /go/src/playground/backend
+
+# Build Application
+RUN go mod download &&\
+    go mod tidy &&\ 
+    cd cmd/server &&\
+    go build -o /go/bin/server_java_backend 
+
+FROM apache/beam_java8_sdk:2.33.0

Review comment:
       @tvalentyn I switched hardcoded version of Beam SDK image to build arg 
provided




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to