From 1f12a887b50a7293a6bbdacb5ce36d97e368cb89 Mon Sep 17 00:00:00 2001 From: Eli Rykoff Date: Thu, 6 Apr 2023 15:21:03 -0700 Subject: [PATCH] Add startup file. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26ae773..63b114a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,8 +23,8 @@ RUN curl -L -o ~/mambaforge.sh https://github.com/conda-forge/miniforge/releases /bin/bash ~/mambaforge.sh -b -p /opt/conda && \ rm ~/mambaforge.sh RUN . /opt/conda/etc/profile.d/conda.sh && conda create --yes --name redmapper-env -RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ - echo "conda activate redmapper-env" >> ~/.bashrc +RUN echo ". /opt/conda/etc/profile.d/conda.sh" > /opt/redmapper/startup.sh && \ + echo "conda activate redmapper-env" >> /opt/redmapper/startup.sh RUN . /opt/conda/etc/profile.d/conda.sh && conda activate redmapper-env && \ mamba install --yes python=3.10 numpy scipy astropy matplotlib pyyaml gsl c-compiler fitsio esutil healpy healsparse hpgeom && \