minimal pastebin with zodb backend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
1.0 KiB

  1. FROM ubuntu:bionic
  2. RUN sed -i -E 's/(archive|security).ubuntu.com/192.168.1.142/' /etc/apt/sources.list && \
  3. sed -i -E 's/^deb-src/# deb-src/' /etc/apt/sources.list && \
  4. apt-get update && \
  5. DEBIAN_FRONTEND=noninteractive \
  6. apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
  7. wget gpg git build-essential && \
  8. wget -qO- http://artifact.scc.net.davepedu.com/repo/apt/extpython/dists/bionic/install | bash /dev/stdin && \
  9. apt-get update && \
  10. DEBIAN_FRONTEND=noninteractive \
  11. apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
  12. extpython-python3.7 && \
  13. apt-get clean autoclean && \
  14. apt-get autoremove -y && \
  15. rm -rf /var/lib/{apt,dpkg,cache,log}/
  16. ADD . /tmp/code
  17. RUN cd /tmp/code && \
  18. /opt/extpython/3.7/bin/pip3 install -r requirements.txt && \
  19. /opt/extpython/3.7/bin/python3 setup.py install && \
  20. useradd --uid 1000 app
  21. USER app
  22. ENTRYPOINT ["/opt/extpython/3.7/bin/wastebind"]