diff --git a/Dockerfile b/Dockerfile index eef20a8..c19b89a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,42 +8,61 @@ ARG DEBIAN_FRONTEND=noninteractive ENV PATH=/opt/conda/bin:$PATH ENV PYTHON_VERSION=${PYTHON_VER} +SHELL ["/bin/bash", "-euo", "pipefail", "-c"] + # Create a conda group and assign it as root's primary group -RUN groupadd conda; \ - usermod -g conda root +RUN <> /etc/skel/.bashrc; \ - echo ". /opt/conda/etc/profile.d/conda.sh; conda activate base" >> ~/.bashrc; - -RUN case "${LINUX_VER}" in \ - "ubuntu"*) \ - apt-get update \ - && apt-get upgrade -y \ - && apt-get install -y --no-install-recommends \ - # needed by the ORC library used by pyarrow, because it provides /etc/localtime - tzdata \ - && rm -rf "/var/lib/apt/lists/*"; \ - ;; \ - esac +RUN <> /etc/skel/.bashrc +echo ". /opt/conda/etc/profile.d/conda.sh; conda activate base" >> ~/.bashrc +EOF + +# tzdata is needed by the ORC library used by pyarrow, because it provides /etc/localtime +RUN <