zpaste/Dockerfile

27 lines
1.0 KiB
Docker
Raw Normal View History

2019-01-28 22:23:35 -08:00
FROM ubuntu:bionic
2019-06-06 08:51:07 -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 build-essential && \
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-01-28 22:23:35 -08:00
2019-06-06 08:51:07 -07:00
ADD . /tmp/code
2019-01-29 16:07:14 -08:00
2019-06-06 08:51:07 -07:00
RUN cd /tmp/code && \
/opt/extpython/3.7/bin/pip3 install -r requirements.txt && \
/opt/extpython/3.7/bin/python3 setup.py install && \
2019-01-28 22:23:35 -08:00
useradd --uid 1000 app
2019-01-29 16:07:14 -08:00
USER app
2019-06-06 08:51:07 -07:00
ENTRYPOINT ["/opt/extpython/3.7/bin/wastebind"]