我正在尝试使用 Dockerfile 构建自己的 docker 映像。但是,Docker 映像有问题。这是我的码头文件。第一次,它说成功构建了图像;但是,某些软件包无法正常工作(例如权限被拒绝和命令未找到等错误),因此我决定删除所有图像和容器以重建此图像。它一直说使用缓存而不是重新安装所有软件包。当我使用这个 docker 时,它一开始就失败了。
FROM ubuntu:18.04
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN apt-get update
RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/*
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
RUN conda --version
RUN conda config --add channels defaults
RUN conda config --add channels bioconda
RUN conda config --add channels conda-forge
RUN conda install -c bioconda bowtie2 fastqc samtools ucsc-bedsort ucsc-bedgraphtobigwig bedtools deeptools homer seacr