我正在嘗試使用以下命令從源代碼構建v8Dockerfile:
FROM ubuntu:20.04
ARG V8_REPO=https://chromium.googlesource.com/chromium/tools/depot_tools.git
ARG ADD_DEPOTTOOLS2PATH='export PATH=/depot_tools:$PATH'
RUN \
apt-get update -y && \
apt-get install git -y && \
apt-get install vim -y && \
apt-get install wget -y && \
apt-get install python3 -y && \
git clone ${V8_REPO} && \
echo ${ADD_DEPOTTOOLS2PATH} >> ~/.bashrc && \
source ~/.bashrc
由于某種原因,它在source-ing 中失敗.bashrc:
$ docker build --tag host --file .\Dockerfile.txt .
...
#5 47.17 /bin/sh: 1: source: not found
------
executor failed running [... && source ~/.bashrc]: exit code: 127
uj5u.com熱心網友回復:
RUN使用的 shell是 /bin/sh。/bin/sh不提供source命令。嘗試使用.-command 而不是source.
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/392477.html
