Skip to content

Instantly share code, notes, and snippets.

@edwin
Created May 26, 2020 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwin/ac2ee12ebb5c2d089da5584f6d1491ec to your computer and use it in GitHub Desktop.
Save edwin/ac2ee12ebb5c2d089da5584f6d1491ec to your computer and use it in GitHub Desktop.
FROM registry.access.redhat.com/ubi8/go-toolset
ENV GOPATH=$APP_ROOT
ENV GOBIN=$APP_ROOT/bin
ADD . $GOPATH/src/hello/
RUN go install hello
FROM registry.access.redhat.com/ubi8/ubi-minimal
COPY --from=0 /opt/app-root/bin/hello /usr/local/bin/hello
CMD hello
EXPOSE 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment