2018-12-12 06:14:05 +00:00
|
|
|
FROM debian:9
|
2019-01-10 18:45:21 +00:00
|
|
|
ARG SOURCEDIR=/repo
|
|
|
|
ENV DEB_BUILD_OPTIONS=noddebs
|
2018-12-12 06:14:05 +00:00
|
|
|
|
|
|
|
# https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
|
|
|
|
RUN apt-get update \
|
2018-12-15 02:21:48 +00:00
|
|
|
&& apt-get install -y apt-transport-https debhelper gnupg wget devscripts \
|
2018-12-12 06:14:05 +00:00
|
|
|
&& wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg \
|
|
|
|
&& mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ \
|
|
|
|
&& wget -q https://packages.microsoft.com/config/debian/9/prod.list \
|
|
|
|
&& mv prod.list /etc/apt/sources.list.d/microsoft-prod.list \
|
|
|
|
&& chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg \
|
|
|
|
&& chown root:root /etc/apt/sources.list.d/microsoft-prod.list \
|
2018-12-15 02:21:48 +00:00
|
|
|
&& apt-get update
|
2018-12-12 06:14:05 +00:00
|
|
|
|
2019-01-10 18:45:21 +00:00
|
|
|
WORKDIR ${SOURCEDIR}
|
2018-12-12 06:14:05 +00:00
|
|
|
COPY . .
|
2019-01-10 18:45:21 +00:00
|
|
|
COPY ./deployment/debian-x64/pkg-src ./debian
|
2018-12-12 06:14:05 +00:00
|
|
|
|
2019-01-10 18:45:21 +00:00
|
|
|
RUN yes | mk-build-deps -i debian/control \
|
|
|
|
&& dpkg-buildpackage -us -uc
|
2018-12-12 06:14:05 +00:00
|
|
|
|
2019-01-10 18:45:21 +00:00
|
|
|
WORKDIR /
|