adchpp-docker/Dockerfile

59 lines
1.5 KiB
Docker
Raw Permalink Normal View History

2020-03-22 08:46:01 +00:00
# focal 2020.01 dev
2020-03-22 10:26:16 +00:00
FROM ubuntu:bionic
2020-03-22 08:46:01 +00:00
ENV DEBIAN_FRONTEND noninteractive
ARG UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu
2020-03-22 10:26:16 +00:00
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 && \
2020-03-22 08:46:01 +00:00
mv /etc/apt/sources.list.new /etc/apt/sources.list
COPY ./root /tmp/rootoverlay
RUN \
apt update && \
apt -y upgrade && \
2020-03-22 09:02:04 +00:00
apt -y install \
2020-03-22 10:26:16 +00:00
asciidoc \
2020-03-22 09:02:04 +00:00
build-essential \
ca-certificates \
git \
golang \
2020-03-22 10:26:16 +00:00
libreadline-dev \
2020-03-22 09:02:04 +00:00
locales \
2020-03-22 10:26:16 +00:00
mercurial \
python \
2020-03-22 09:02:04 +00:00
rsync \
2020-03-22 10:26:16 +00:00
ruby \
ruby-dev \
2020-03-22 09:02:04 +00:00
runit \
2020-03-22 10:26:16 +00:00
scons \
swig \
2020-03-22 09:02:04 +00:00
&& \
2020-03-22 08:46:01 +00:00
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 && \
2020-03-22 09:02:04 +00:00
rm -r /root/go && \
chmod a+rx /etc/service/*/run
2020-03-22 08:46:01 +00:00
CMD ["/usr/local/sbin/runsvinit"]
COPY ./src /usr/local/src/adchpp
RUN \
cd /usr/local/src/adchpp && \
2020-03-22 10:26:16 +00:00
scons && \
cd build/debug-default && \
cp bin/adchppd /usr/local/bin && \
cp bin/*.so /usr/local/lib && \
ldconfig
2020-03-22 08:46:01 +00:00
2020-03-22 10:26:16 +00:00
EXPOSE 2780
2020-03-22 08:46:01 +00:00
VOLUME /config