latest, still doesn't build yet
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -13,18 +13,25 @@ mv /etc/apt/sources.list.new /etc/apt/sources.list
|
||||
|
||||
COPY ./root /tmp/rootoverlay
|
||||
|
||||
# we only install essential system packages here
|
||||
ARG SYSTEM_PACKAGES="build-essential golang ca-certificates git rsync runit locales"
|
||||
|
||||
RUN \
|
||||
apt update && \
|
||||
apt -y upgrade && \
|
||||
apt -y install $SYSTEM_PACKAGES && \
|
||||
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
|
||||
rm -r /root/go && \
|
||||
chmod a+rx /etc/service/*/run
|
||||
|
||||
CMD ["/usr/local/sbin/runsvinit"]
|
||||
|
||||
@@ -32,7 +39,8 @@ COPY ./src /usr/local/src/adchpp
|
||||
|
||||
RUN \
|
||||
cd /usr/local/src/adchpp && \
|
||||
python
|
||||
python2 build_util.py && \
|
||||
ls
|
||||
|
||||
EXPOSE 411
|
||||
|
||||
|
||||
Reference in New Issue
Block a user