adchpp-docker/Dockerfile
2020-03-22 03:26:16 -07:00

59 lines
1.5 KiB
Docker

# focal 2020.01 dev
FROM ubuntu:bionic
ENV DEBIAN_FRONTEND noninteractive
ARG UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu
RUN echo "deb $UBUNTU_MIRROR bionic main universe restricted multiverse" > /etc/apt/sources.list.new && \
echo "deb $UBUNTU_MIRROR bionic-updates main universe restricted multiverse" >> /etc/apt/sources.list.new && \
echo "deb $UBUNTU_MIRROR bionic-security main universe restricted multiverse" >> /etc/apt/sources.list.new && \
echo "deb $UBUNTU_MIRROR bionic-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 \
asciidoc \
build-essential \
ca-certificates \
git \
golang \
libreadline-dev \
locales \
mercurial \
python \
rsync \
ruby \
ruby-dev \
runit \
scons \
swig \
&& \
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 && \
scons && \
cd build/debug-default && \
cp bin/adchppd /usr/local/bin && \
cp bin/*.so /usr/local/lib && \
ldconfig
EXPOSE 2780
VOLUME /config