2019-07-15 20:44:20 +03:00
|
|
|
FROM debian:buster
|
2015-08-05 03:15:08 +03:00
|
|
|
|
2017-11-01 06:05:04 +03:00
|
|
|
LABEL maintainer="Chris Kuehl <ckuehl@yelp.com>"
|
2016-01-08 00:51:50 +03:00
|
|
|
|
2017-02-25 03:46:55 +03:00
|
|
|
# The default mirrors are too flaky to run reliably in CI.
|
|
|
|
RUN sed -E \
|
|
|
|
'/security\.debian/! s@http://[^/]+/@http://mirrors.kernel.org/@' \
|
|
|
|
-i /etc/apt/sources.list
|
|
|
|
|
2016-01-08 00:51:50 +03:00
|
|
|
# Install the bare minimum dependencies necessary for working with Debian
|
|
|
|
# packages. Build dependencies should be added under "Build-Depends" inside
|
|
|
|
# debian/control instead.
|
2019-07-31 18:48:45 +03:00
|
|
|
RUN : \
|
|
|
|
&& apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
2016-12-02 23:57:02 +03:00
|
|
|
build-essential \
|
|
|
|
devscripts \
|
|
|
|
equivs \
|
|
|
|
lintian \
|
2019-07-31 18:48:45 +03:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /tmp/mnt
|
2015-08-05 03:15:08 +03:00
|
|
|
|
2019-07-31 18:48:45 +03:00
|
|
|
COPY debian/control /control
|
|
|
|
RUN : \
|
|
|
|
&& apt-get update \
|
|
|
|
&& mk-build-deps --install --tool 'apt-get -y --no-install-recommends' /control \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
ENTRYPOINT make builddeb
|