我收到以下错误
Step 5/6 : RUN git clone https://github.com/jkimlab/mySyntenyPortal.git cd mySyntenyPortal find . -name '*.pl' -exec sed -i.bak 's|#!/usr/bin/perl|#!/usr/bin/env perl|' {} +
---> Running in a8c56b946874
error: unknown switch `a'
usage: git clone [<options>] [--] <repo> [<dir>]
这是docker文件:
FROM debian:stretch-backports
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt install -y \
build-essential \
zlib1g-dev \
locales \
git
RUN rm -rf /var/lib/apt/lists/* && apt-get clean
RUN git clone https://github.com/jkimlab/mySyntenyPortal.git \
cd mySyntenyPortal \
find . -name '*.pl' -exec sed -i.bak 's|#!/usr/bin/perl|#!/usr/bin/env perl|' {} +
#./install.pl build
CMD ["/bin/bash"]
我错过了什么?
先感谢您
答案1
git
、cd
和find
是单独的命令,需要用 分隔&&
,就像RUN
上面的命令一样。