| # debian.sh --arch 'arm64' out/ 'bookworm' '@1745798400' |
| LABEL maintainer=Anaconda, Inc |
| ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 |
| RUN /bin/sh -c apt-get update -q && apt-get install -q -y --no-install-recommends bzip2 ca-certificates git libglib2.0-0 libsm6 libxext6 libxrender1 mercurial openssh-client procps subversion wget && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
| ENV PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| CMD ["/bin/bash"] |
| ARG INSTALLER_URL_LINUX64=https://repo.anaconda.com/miniconda/Miniconda3-py313_25.3.1-1-Linux-x86_64.sh |
| ARG SHA256SUM_LINUX64=53a86109463cfd70ba7acab396d416e623012914eee004729e1ecd6fe94e8c69 |
| ARG INSTALLER_URL_AARCH64=https://repo.anaconda.com/miniconda/Miniconda3-py313_25.3.1-1-Linux-aarch64.sh |
| ARG SHA256SUM_AARCH64=4caa0c266ab726b440ccad40a74774167494e001da5de281b74f2d5673e4ace9 |
| RUN |4 INSTALLER_URL_LINUX64=https://repo.anaconda.com/miniconda/Miniconda3-py313_25.3.1-1-Linux-x86_64.sh SHA256SUM_LINUX64=53a86109463cfd70ba7acab396d416e623012914eee004729e1ecd6fe94e8c69 INSTALLER_URL_AARCH64=https://repo.anaconda.com/miniconda/Miniconda3-py313_25.3.1-1-Linux-aarch64.sh SHA256SUM_AARCH64=4caa0c266ab726b440ccad40a74774167494e001da5de281b74f2d5673e4ace9 /bin/sh -c set -x && UNAME_M="$(uname -m)" && if [ "${UNAME_M}" = "x86_64" ]; then INSTALLER_URL="${INSTALLER_URL_LINUX64}"; SHA256SUM="${SHA256SUM_LINUX64}"; elif [ "${UNAME_M}" = "aarch64" ]; then INSTALLER_URL="${INSTALLER_URL_AARCH64}"; SHA256SUM="${SHA256SUM_AARCH64}"; fi && wget "${INSTALLER_URL}" -O miniconda.sh -q && echo "${SHA256SUM} miniconda.sh" > shasum && sha256sum --check --status shasum && mkdir -p /opt && bash miniconda.sh -b -p /opt/conda && rm miniconda.sh shasum && ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && echo "conda activate" >> ~/.bashrc && find /opt/conda/ -follow -type f -name '*.a' -delete && find /opt/conda/ -follow -type f -name '*.js.map' -delete && /opt/conda/bin/conda clean -afy # buildkit |
| WORKDIR /workspace |
| COPY environment.yml . # buildkit |
| RUN /bin/sh -c useradd -m condauser && chown -R condauser /workspace # buildkit |
| USER condauser |
| SHELL [/bin/bash -c] |
| RUN /bin/bash -c conda init bash # buildkit |
| CMD ["bash"] |
| WORKDIR /app |
| COPY test4.py /app/test4.py # buildkit |
| COPY requirements.txt /app/requirements.txt # buildkit |
| RUN /bin/bash -c conda create -n test4 python=3.10 && conda run -n test4 pip install --no-cache-dir -r /app/requirements.txt # buildkit |
| ENTRYPOINT ["conda" "run" "-n" "test4" "python" "/app/test4.py"] |