Skip to content

Instantly share code, notes, and snippets.

View suriyahgit's full-sized avatar

Suriyah Dhinakaran suriyahgit

  • EURAC Research
  • Bolzano, Italy
View GitHub Profile
@suriyahgit
suriyahgit / entry.sh
Created July 7, 2022 08:52 — forked from xkortex/entry.sh
dockerfile entrypoint for activating conda environment
#!/bin/bash
## Entrypoint for docker RUN directives as well as ENTRYPOINT with conda env
## Enable by adding:
## COPY entry.sh ./
## SHELL ["/entry.sh", "/bin/bash", "-c"]
##
## Optionally, set the following env to select a conda env to run in
## ENV CONDA_DEFAULT_ENV=foo
## You may also want to add something like
## RUN conda init bash && echo 'conda activate "${CONDA_TARGET_ENV:-base}"' >> ~/.bashrc