49 lines
1.3 KiB
Docker
49 lines
1.3 KiB
Docker
# focal 2020.01 dev
|
|
FROM ubuntu@sha256:d050ed7278c16ff627e4a70d7d353f1a2ec74d8a0b66e5a865356d92f5f6d87b
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
ARG UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu
|
|
|
|
RUN echo "deb $UBUNTU_MIRROR focal main universe restricted multiverse" > /etc/apt/sources.list.new && \
|
|
echo "deb $UBUNTU_MIRROR focal-updates main universe restricted multiverse" >> /etc/apt/sources.list.new && \
|
|
echo "deb $UBUNTU_MIRROR focal-security main universe restricted multiverse" >> /etc/apt/sources.list.new && \
|
|
echo "deb $UBUNTU_MIRROR focal-backports main universe restricted multiverse" >> /etc/apt/sources.list.new && \
|
|
mv /etc/apt/sources.list.new /etc/apt/sources.list
|
|
|
|
COPY ./root /tmp/rootoverlay
|
|
|
|
RUN \
|
|
apt update && \
|
|
apt -y upgrade && \
|
|
apt -y install \
|
|
build-essential \
|
|
ca-certificates \
|
|
git \
|
|
golang \
|
|
locales \
|
|
python2 \
|
|
rsync \
|
|
runit \
|
|
&& \
|
|
go get -v -u github.com/peterbourgon/runsvinit && \
|
|
cp /root/go/bin/runsvinit /usr/local/sbin/runsvinit && \
|
|
rsync -avP /tmp/rootoverlay/ / && \
|
|
rm -rf /tmp/rootoverlay && \
|
|
rm -r /root/go && \
|
|
chmod a+rx /etc/service/*/run
|
|
|
|
CMD ["/usr/local/sbin/runsvinit"]
|
|
|
|
COPY ./src /usr/local/src/adchpp
|
|
|
|
RUN \
|
|
cd /usr/local/src/adchpp && \
|
|
python2 build_util.py && \
|
|
ls
|
|
|
|
EXPOSE 411
|
|
|
|
VOLUME /config
|
|
|