diff --git a/Dockerfile b/Dockerfile index 5f9bed3c..df4cb793 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu -RUN apt update && apt install git git-lfs python3 python3-pip -y && \ +RUN apt update && apt install git git-lfs python3-full python3-pip -y && \ echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config ADD *.sh / diff --git a/entrypoint.sh b/entrypoint.sh index fe6b3543..0ff7a351 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,6 +10,8 @@ mkdir -p /root/.ssh echo "${INPUT_DST_KEY}" > /root/.ssh/id_rsa chmod 600 /root/.ssh/id_rsa +python3 -m venv /hub-mirror/venv +source /hub-mirror/venv/bin/activate pip3 install -r /hub-mirror/requirements.txt git lfs install