1 FROM debian:stable-slim
2 RUN apt-get -qq update; \
3 apt-get install --no-install-recommends -y devscripts equivs; \
4 rm -rf /var/lib/apt/lists/*; \
6 COPY debian/control debian/control
7 COPY debian/changelog debian/changelog
9 RUN echo 'deb http://deb.debian.org/debian/ sid main' \
10 > /etc/apt/sources.list.d/sid.list
11 RUN echo 'deb http://deb.debian.org/debian/ stretch-backports main' \
12 > /etc/apt/sources.list.d/stretchbackports.list
13 RUN echo '\nPackage: libtest-postgresql-perl\nPin: release a=unstable\nPin-Priority: 500\n\n'\
14 > /etc/apt/preferences
15 RUN echo '\nPackage: *\nPin: release a=unstable\nPin-Priority: 1\n\n'\
16 >> /etc/apt/preferences
17 RUN echo '\nPackage: *\nPin: release a=stretch-backports\nPin-Priority: 500\n\n'\
18 >> /etc/apt/preferences
19 # work around slim image interacting with missing documentation
20 RUN for a in $(seq 1 7); do mkdir -p /usr/share/man/man$a; done;
21 RUN apt-get -qq update && \
22 mk-build-deps --install \
23 --tool 'apt-get -y -o Debug:pkgProblemResolver=yes --no-install-recommends' \
25 rm -rf /var/lib/apt/lists/* && \