Dockerfile.builder 562 B

1234567891011121314151617
  1. # We will grab the Go compiler from the latest Go image.
  2. FROM golang:1.13 as go
  3. # Otherwise we base on the snapcraft container as that is by far the
  4. # most complex and tricky thing to get installed and working...
  5. FROM snapcore/snapcraft
  6. # Go
  7. COPY --from=go /usr/local/go /usr/local/go
  8. ENV PATH="/usr/local/go/bin:$PATH"
  9. # FPM to build Debian packages
  10. RUN apt-get update && apt-get install -y --no-install-recommends \
  11. locales rubygems ruby-dev build-essential git \
  12. && apt-get clean \
  13. && rm -rf /var/lib/apt/lists/* \
  14. && gem install --no-ri --no-rdoc fpm