dirview/Dockerfile

25 lines
995 B
Docker
Raw Normal View History

2019-06-01 18:45:52 -07:00
FROM ubuntu:bionic
2019-05-29 16:40:49 -07:00
2019-06-01 18:45:52 -07:00
RUN sed -i -E 's/(archive|security).ubuntu.com/192.168.1.142/' /etc/apt/sources.list && \
sed -i -E 's/^deb-src/# deb-src/' /etc/apt/sources.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
wget gpg git && \
wget -qO- http://artifact.scc.net.davepedu.com/repo/apt/extpython/dists/bionic/install | bash /dev/stdin && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
extpython-python3.7 && \
apt-get clean autoclean && \
apt-get autoremove -y && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
2019-05-29 16:40:49 -07:00
ADD . /tmp/code
RUN cd /tmp/code && \
2019-06-01 18:45:52 -07:00
/opt/extpython/3.7/bin/pip3 install -r requirements.txt && \
/opt/extpython/3.7/bin/python3 setup.py install
2019-05-29 16:40:49 -07:00
2019-06-01 18:45:52 -07:00
ENTRYPOINT ["/opt/extpython/3.7/bin/dirviewd"]