2019-05-31 14:26:56 -07:00
|
|
|
FROM ubuntu:disco
|
2018-10-18 22:07:44 -07:00
|
|
|
|
|
|
|
RUN sed -i -E 's/(archive|security).ubuntu.com/192.168.1.142/' /etc/apt/sources.list && \
|
2019-05-31 07:41:20 -07:00
|
|
|
sed -i -E 's/^deb-src/# deb-src/' /etc/apt/sources.list && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y dpkg-dev debhelper build-essential sudo wget curl
|
2018-10-18 22:07:44 -07:00
|
|
|
|
2019-05-31 07:41:20 -07:00
|
|
|
RUN useradd builder && \
|
|
|
|
install -d /build -o builder -g builder
|
2018-10-18 22:07:44 -07:00
|
|
|
|
2019-05-31 07:41:20 -07:00
|
|
|
ADD scripts/bootstrap.sh /bootstrap.sh
|
|
|
|
ADD scripts/build.sh /build.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bootstrap.sh"]
|