Skip to content
Permalink
Browse files

Added Dockerfile for CGO-geared builds

This adds a Dockerfile for an image that can build linux/amd64 binaries.
  • Loading branch information...
sgnn7 authored and caarlos0 committed Nov 27, 2018
1 parent 19f4ed6 commit 816bba2016011e009fdc4efdb3a5c2cacb10ab07
Showing with 25 additions and 0 deletions.
  1. +25 −0 Dockerfile.cgo
@@ -0,0 +1,25 @@
FROM golang:1.11

RUN apt-get update && \
apt-get install -y --no-install-recommends apt-transport-https \
build-essential \
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/*

ENTRYPOINT ["/entrypoint.sh"]
CMD [ "-h" ]

COPY entrypoint.sh /entrypoint.sh
COPY goreleaser /bin/goreleaser

RUN chmod +x /entrypoint.sh

0 comments on commit 816bba2

Please sign in to comment.
You can’t perform that action at this time.