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
687 B

  1. FROM debian:bullseye
  2. # Install tini
  3. ENV TINI_VERSION v0.19.0
  4. ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
  5. RUN chmod +x /tini
  6. # Install ia cli tool.
  7. RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y \
  8. build-essential dpkg-dev devscripts cmake git python3 python3-dev python3-pip \
  9. && rm -rf /var/lib/apt/lists/*
  10. RUN pip3 install internetarchive
  11. # Create data mount
  12. RUN mkdir -p /data
  13. RUN chown nobody:nogroup /data
  14. WORKDIR /
  15. # Include files
  16. COPY mover.sh /mover.sh
  17. COPY entrypoint.sh /entrypoint.sh
  18. COPY uploader.sh /uploader.sh
  19. COPY upload-single.sh /upload-single.sh
  20. ENTRYPOINT [ "/tini", "--", "/entrypoint.sh" ]