代码拉取完成,页面将自动刷新
version: "3.8"
services:
setup:
image: ubuntu:${UBUNTU_VERSION:-22.04}
user: "0:0"
privileged: true
environment:
- ./output:/tmp/output:rw
command: >
bash -c '
if [ "x${UBUNTU_VERSION}" == "x" ]; then
echo "Set the UBUNTU_VERSION environment variable in the .env file";
exit 1;
fi;
if [ "x${PKG_DOWNLOAD_LIST}" == "x" ]; then
echo "Set the PKG_DOWNLOAD_LIST environment variable in the .env file";
exit 1;
fi;
echo 'ok' > /tmp/.unlock;
sleep 3;
echo "Setup done!";
'
healthcheck:
test: [ "CMD-SHELL", "[ -f /tmp/.unlock ]" ]
interval: 1s
timeout: 5s
retries: 120
downloader:
depends_on:
setup:
condition: service_healthy
image: ubuntu:${UBUNTU_VERSION:-22.04}-apk-offline
build:
context: .
args:
- UBUNTU_VERSION=${UBUNTU_VERSION}
user: "0:0"
privileged: true
volumes:
- ./docker-entrypoint.sh:/docker-entrypoint.sh
- ./output:/tmp/output:rw
environment:
- PKG_DOWNLOAD_LIST=${PKG_DOWNLOAD_LIST}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。