2020-02-23 07:40:42 +00:00
|
|
|
# We will grab the Go compiler from the latest Go image.
|
2020-04-07 06:22:53 +00:00
|
|
|
FROM golang:1.14 as go
|
2020-02-14 09:44:31 +00:00
|
|
|
|
2020-02-23 07:40:42 +00:00
|
|
|
# Otherwise we base on the snapcraft container as that is by far the
|
|
|
|
# most complex and tricky thing to get installed and working...
|
|
|
|
FROM snapcore/snapcraft
|
2020-02-14 09:44:31 +00:00
|
|
|
|
2020-02-23 07:40:42 +00:00
|
|
|
# Go
|
|
|
|
COPY --from=go /usr/local/go /usr/local/go
|
|
|
|
ENV PATH="/usr/local/go/bin:$PATH"
|
2020-02-14 09:44:31 +00:00
|
|
|
|
|
|
|
# FPM to build Debian packages
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
2020-02-23 07:40:42 +00:00
|
|
|
locales rubygems ruby-dev build-essential git \
|
2020-02-14 09:44:31 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2020-02-23 07:40:42 +00:00
|
|
|
&& gem install --no-ri --no-rdoc fpm
|