123456789101112131415161718192021222324252627282930 |
- FROM ubuntu
- RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list \
- && sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
- RUN set -xe && apt-get update
- RUN apt-get -y install python3-pip zsh
- ENV PYTHON_VERSION 3
- RUN chsh -s `which zsh`
- RUN apt install -y curl
- RUN curl -o ~/miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda${PYTHON_VERSION}-latest-Linux-x86_64.sh && \
- chmod +x ~/miniconda.sh && \
- ~/miniconda.sh -b -p /opt/conda && \
- rm ~/miniconda.sh
- RUN ln /opt/conda/bin/conda /usr/local/bin/conda
- RUN conda init zsh
- RUN conda install mamba -n base -c conda-forge
- RUN ln /opt/conda/bin/mamba /usr/local/bin/mamba && mamba init zsh
- ADD environment.yml /environment.yml
- ADD main.py /main.py
- ADD utils.py /utils.py
- ADD datax.py /datax.py
- ADD user.keytab /user.keytab
- ADD krb5.conf /krb5.conf
- RUN cp krb5.conf /etc
- RUN apt-get install -y iputils-ping
- RUN conda env create -f /environment.yml && rm -rf /root/.cache
- RUN apt-get install -y vim
|