mirror of
https://github.com/newnius/YAO-Dockerfiles.git
synced 2025-06-06 07:51:54 +00:00
update
This commit is contained in:
parent
76e1dd1e0b
commit
477aef6043
@ -2,13 +2,16 @@
|
|||||||
|
|
||||||
if ! [[ -z "${repo}" ]]; then
|
if ! [[ -z "${repo}" ]]; then
|
||||||
if [[ -z "${branch}" ]]; then
|
if [[ -z "${branch}" ]]; then
|
||||||
git clone $repo workspace
|
git clone $repo /workspace
|
||||||
else
|
else
|
||||||
git clone -b $branch $repo /workspace
|
git clone -b $branch $repo /workspace
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /workspace
|
if [ -d /workspace ]; then
|
||||||
|
cd /workspace
|
||||||
|
fi
|
||||||
|
|
||||||
$@
|
# use eval because commands likes `key=value command` would cause file not found error when using $@, but this eval will ruin current environment
|
||||||
|
eval $@
|
||||||
|
|
||||||
|
@ -5,5 +5,6 @@ MAINTAINER Newnius <newnius.cn@gmail.com>
|
|||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install -y python3 python3-pip
|
apt install -y python3 python3-pip && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user