Dockerfile 857 B

1234567891011121314151617181920212223242526272829303132
  1. # We need Bioconductor, so we inherit from their repositorycd .
  2. FROM bioconductor/bioconductor_docker
  3. ARG tag_name
  4. ARG repo_name
  5. ENV github_tag=$tag_name
  6. ENV github_repo=$repo_name
  7. RUN echo "Building repo ${github_repo} with tag: ${github_tag}"
  8. ################
  9. # CALDER SETUP #
  10. ################
  11. # Get latest release tag
  12. RUN wget https://github.com/${github_repo}/archive/refs/tags/${github_tag}.tar.gz
  13. # Untar the release
  14. RUN tar xvfs ${github_tag}.tar.gz
  15. # Adding calder script to bin
  16. ENV calder_cmd=CALDER2-${github_tag}/scripts/calder
  17. RUN ln -s $(realpath ${calder_cmd}) /bin/
  18. # Removing tar file
  19. RUN rm ${github_tag}.tar.gz
  20. # # Install the package
  21. RUN R -e "remotes::install_local('CALDER2-${github_tag}', dependencies=T); if (!library(CALDER, logical.return=T)) quit(status=10)"
  22. # # Install other packages
  23. RUN pip install cooler
  24. CMD ["bash"]