2018-10-05 10:07:03 -03:00
|
|
|
FROM golang:1.11
|
2018-11-27 08:49:25 -06:00
|
|
|
|
2018-08-20 23:51:37 -03:00
|
|
|
RUN apt-get update && \
|
2018-11-27 08:49:25 -06:00
|
|
|
apt-get install -y --no-install-recommends apt-transport-https \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
gnupg2 \
|
|
|
|
rpm \
|
|
|
|
software-properties-common && \
|
|
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
|
|
|
|
apt-key fingerprint "9DC858229FC7DD38854AE2D88D81803C0EBFCD88" | grep "<docker@docker.com>" && \
|
|
|
|
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends docker-ce && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2018-09-04 15:19:01 +03:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD [ "-h" ]
|
2018-11-27 08:49:25 -06:00
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
COPY goreleaser /bin/goreleaser
|
|
|
|
|
|
|
|
RUN chmod +x /entrypoint.sh
|