| 1 |
FROM tianon/debian-devel |
| 2 |
|
| 3 |
# start by adding just "debian/control" so we can get mk-build-deps with maximum caching |
| 4 |
ADD control /usr/src/python-astor/debian/ |
| 5 |
WORKDIR /usr/src/python-astor |
| 6 |
|
| 7 |
# get all the build deps of _this_ package in a nice repeatable way |
| 8 |
RUN apt-get update && mk-build-deps -irt'apt-get --no-install-recommends -yq' debian/control |
| 9 |
|
| 10 |
# need our debian/ directory to compile _this_ package |
| 11 |
ADD . /usr/src/python-astor/debian |
| 12 |
|
| 13 |
# go download and unpack our upstream source |
| 14 |
RUN uscan --force-download --verbose --download-current-version |
| 15 |
RUN origtargz --unpack |
| 16 |
|
| 17 |
# tianon is _really_ lazy, and likes a preseeded bash history |
| 18 |
RUN echo 'origtargz --unpack && dpkg-buildpackage -us -uc && lintian -EvIL+pedantic' >> "$HOME/.bash_history" |