Debian
錯誤:git引起的未知開關“a”
我收到以下錯誤
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>]
這是泊塢窗文件:
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"]
我錯過了什麼?
先感謝您
git
,cd
, 和find
是單獨的命令,需要用 分隔&&
,就像RUN
上面的命令一樣。