tvalentyn commented on a change in pull request #15751: URL: https://github.com/apache/beam/pull/15751#discussion_r738949957
########## File path: playground/backend/containers/java/Dockerfile ########## @@ -15,5 +15,41 @@ # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### +ARG BASE_IMAGE -#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 +RUN ls +# Build Application +RUN go mod download &&\ + go mod tidy &&\ + cd cmd/server &&\ + go build -o /go/bin/server_java_backend + +FROM $BASE_IMAGE +ENV BEAM_VERSION=2.33.0 Review comment: Should BEAM_VERSION be an ARG too? -- 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]
