zpaste/Dockerfile

27 lines
1.0 KiB
Docker
Raw Permalink Normal View History

2022-02-01 23:13:47 -08:00
FROM ubuntu:focal
2019-01-28 22:23:35 -08:00
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 && \
2022-02-01 23:13:47 -08:00
wget -qO- http://artifact.scc.net.davepedu.com/repo/apt/extpython/dists/focal/install | bash /dev/stdin && \
2019-06-06 08:51:07 -07:00
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
2022-02-01 23:13:47 -08:00
extpython-python3.9 && \
2019-06-06 08:51:07 -07:00
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 && \
2022-02-01 23:13:47 -08:00
/opt/extpython/3.9/bin/pip3 install -r requirements.txt && \
/opt/extpython/3.9/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
2022-02-01 23:13:47 -08:00
ENTRYPOINT ["/opt/extpython/3.9/bin/wastebind"]