-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
37 lines (27 loc) · 1.27 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM golang:1.10
RUN go get github.com/tcnksm/ghr && \
go get github.com/Masterminds/glide && \
mkdir -p /go/src/k8s.io && \
git clone https://github.com/kubernetes/code-generator /go/src/k8s.io/code-generator && \
cd /go/src/k8s.io/code-generator && \
git checkout 1eeed5f600b70f788fa97951e1e7b47ce212c242 && \
go build -o /go/bin/conversion-gen ./cmd/conversion-gen
FROM golang:1.10
ENV DOCKER_VERSION "17.03.0-ce"
# The following is based on https://github.com/kubernetes/release/blob/master/debian/Dockerfile
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && \
apt-get -yy -q install --no-install-recommends --no-install-suggests --fix-missing \
dpkg-dev build-essential debhelper dh-systemd socat \
ca-certificates curl && \
apt-get upgrade -y && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -sSL -o "/tmp/docker-${DOCKER_VERSION}.tgz" "https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz" && \
tar -xz -C /tmp -f "/tmp/docker-${DOCKER_VERSION}.tgz" && \
mv /tmp/docker/* /usr/bin
COPY --from=0 /go/bin/* /go/bin/
ADD . /go/src/github.com/Mirantis/criproxy
WORKDIR /go/src/github.com/Mirantis/criproxy
CMD ["./build-package.sh"]