when run this command:
docker build \
--build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
--build-arg=FRAPPE_BRANCH=version-15 \
--build-arg=PYTHON_VERSION=3.11.6 \
--build-arg=NODE_VERSION=18.18.2 \
--build-arg=APPS_JSON_BASE64=$APPS_JSON_BASE64 \
--tag=myapp:1.0.0 \
--file=images/custom/Containerfile .
always failed:
356.3 curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 3 ms: Couldn't connect to server
356.3 /bin/sh: 1: .: cannot open /home/frappe/.nvm/nvm.sh: No such file
and get this error info:
ERROR: failed to solve: process "/bin/sh -c useradd -ms /bin/bash frappe && apt-get update && apt-get install --no-install-recommends -y curl git vim nginx gettext-base libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 libpangocairo-1.0-0 restic gpg mariadb-client less libpq-dev postgresql-client wait-for-it jq && mkdir -p ${NVM_DIR} && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash && . ${NVM_DIR}/nvm.sh && nvm install ${NODE_VERSION} && nvm use v${NODE_VERSION} && npm install -g yarn && nvm alias default v${NODE_VERSION} && rm -rf ${NVM_DIR}/.cache && echo 'export NVM_DIR=\"/home/frappe/.nvm\"' >>/home/frappe/.bashrc && echo '[ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\" # This loads nvm' >>/home/frappe/.bashrc && echo '[ -s \"$NVM_DIR/bash_completion\" ] && \\. \"$NVM_DIR/bash_completion\" # This loads nvm bash_completion' >>/home/frappe/.bashrc && if [ \"$(uname -m)\" = \"aarch64\" ]; then export ARCH=arm64; fi && if [ \"$(uname -m)\" = \"x86_64\" ]; then export ARCH=amd64; fi && downloaded_file=wkhtmltox_${WKHTMLTOPDF_VERSION}.${WKHTMLTOPDF_DISTRO}_${ARCH}.deb && curl -sLO https://github.com/wkhtmltopdf/packaging/releases/download/$WKHTMLTOPDF_VERSION/$downloaded_file && apt-get install -y ./$downloaded_file && rm $downloaded_file && rm -rf /var/lib/apt/lists/* && rm -fr /etc/nginx/sites-enabled/default && pip3 install frappe-bench && sed -i '/user www-data/d' /etc/nginx/nginx.conf && ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log && touch /run/nginx.pid && chown -R frappe:frappe /etc/nginx/conf.d && chown -R frappe:frappe /etc/nginx/nginx.conf && chown -R frappe:frappe /var/log/nginx && chown -R frappe:frappe /var/lib/nginx && chown -R frappe:frappe /run/nginx.pid && chmod 755 /usr/local/bin/nginx-entrypoint.sh && chmod 644 /templates/nginx/frappe.conf.template" did not complete successfully: exit code: 2
I’m sure that my connection to raw.githubusercontent.com has no problem.
becasue this curl command is ok:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh
I can get the entire script file.
So, what is the real problem?