-
Notifications
You must be signed in to change notification settings - Fork 65
/
Dockerfile.deb.jessie
41 lines (31 loc) · 1.03 KB
/
Dockerfile.deb.jessie
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
38
39
40
41
FROM debian:jessie
VOLUME /output
RUN apt-get -yqq update && DEBIAN_FRONTEND=noninteractive apt-get -yqq install \
dpkg-dev \
lsb-release \
curl \
git \
wget \
make \
unzip \
ruby-dev \
rubygems \
python-dev \
python-pip
RUN gem install fpm
RUN pip install virtualenv
RUN mkdir -p /gocode/src/github.com/uber/peloton
WORKDIR /gocode/src/github.com/uber/peloton
RUN curl -o go1.11.4.linux-amd64.tar.gz https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.11.4.linux-amd64.tar.gz
ENV PATH="${PATH}:/usr/local/go/bin"
ENV GOROOT=/usr/local/go
ENV GOBIN=/usr/local/go/bin
ENV GOPATH=/gocode
ENV SRC_DIR=/gocode/src/github.com/uber/peloton
RUN curl https://glide.sh/get | sh
ADD . /gocode/src/github.com/uber/peloton
RUN rm -rf vendor && glide cc && glide install
ADD tools/packaging/peloton-release/deb/jessie/build.sh /build.sh
ADD tools/packaging/peloton-release/deb/build-common.sh /build-common.sh
ENTRYPOINT ["/build.sh"]