1
FROM tianon/debian-devel
3
# TODO find a cleaner way to get ".git" in the image without this hack
4
RUN git clone --no-checkout git://anonscm.debian.org/pkg-go/packages/golang-mux.git /usr/src/golang-mux
6
# start by adding just "debian/control" so we can get mk-build-deps with maximum caching
7
ADD control /usr/src/golang-mux/debian/
8
WORKDIR /usr/src/golang-mux
10
# get all the build deps of _this_ package in a nice repeatable way
11
RUN apt-get update && mk-build-deps -irt'apt-get --no-install-recommends -yq' debian/control
13
# need our debian/ directory to compile _this_ package
14
ADD . /usr/src/golang-mux/debian
16
# go download and unpack our upstream source
17
#RUN uscan --force-download --verbose --download-current-version
18
RUN git fetch --tags && ./debian/helpers/generate-tarball.sh ../
19
RUN origtargz --unpack
21
# tianon is _really_ lazy, and likes a preseeded bash history
22
RUN echo 'origtargz --unpack && dpkg-buildpackage -us -uc && lintian -EvIL+pedantic' >> /root/.bash_history