You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
847 B
24 lines
847 B
6 years ago
|
FROM debian:9
|
||
6 years ago
|
ARG SOURCEDIR=/repo
|
||
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||
6 years ago
|
|
||
|
# https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
|
||
|
RUN apt-get update \
|
||
6 years ago
|
&& apt-get install -y apt-transport-https debhelper gnupg wget devscripts \
|
||
6 years ago
|
&& 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 \
|
||
6 years ago
|
&& apt-get update
|
||
6 years ago
|
|
||
6 years ago
|
WORKDIR ${SOURCEDIR}
|
||
6 years ago
|
COPY . .
|
||
6 years ago
|
COPY ./deployment/debian-x64/pkg-src ./debian
|
||
6 years ago
|
|
||
6 years ago
|
RUN yes | mk-build-deps -i debian/control \
|
||
|
&& dpkg-buildpackage -us -uc
|
||
6 years ago
|
|
||
6 years ago
|
WORKDIR /
|