Dockerfile 969 B

12345678910111213141516171819202122232425262728293031
  1. FROM python:3-slim
  2. ARG DOCKER_TAG
  3. ENV DEBIAN_FRONTEND=noninteractive
  4. RUN apt-get -y update
  5. RUN apt-get -y install --no-install-recommends locales curl gnupg
  6. RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
  7. RUN locale-gen
  8. # add neurodebian sources for git-annex-standalone
  9. RUN curl http://neuro.debian.net/lists/buster.de-m.full > /etc/apt/sources.list.d/neurodebian.sources.list
  10. RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xA5D32F012649A5A9
  11. RUN apt-get -y update
  12. # rclone is a useful add-on
  13. RUN curl -O https://downloads.rclone.org/v1.59.2/rclone-v1.59.2-linux-arm64.deb && dpkg -i rclone*deb && rm -f rclone*deb
  14. # install packages
  15. RUN apt-get -y install --no-install-recommends git git-annex-remote-rclone git-annex make
  16. RUN pip3 install "datalad${DOCKER_TAG+==$DOCKER_TAG}"
  17. # clean up
  18. RUN apt-get clean
  19. RUN git config --global user.name "Docker Datalad"
  20. RUN git config --global user.email "docker-datalad@example.com"
  21. ENTRYPOINT ["datalad"]