Docker 相关功能修复 (#19)
This commit is contained in:
parent
d3870beffd
commit
8d73a4275f
|
@ -144,3 +144,4 @@ yunzai
|
||||||
/data/
|
/data/
|
||||||
/temp/
|
/temp/
|
||||||
/pnpm-lock.yaml
|
/pnpm-lock.yaml
|
||||||
|
/entrypoint.sh
|
||||||
|
|
|
@ -23,7 +23,7 @@ COPY --from=resource /res/ffmpeg/ffprobe /usr/bin/ffprobe
|
||||||
RUN sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" /etc/apt/sources.list \
|
RUN sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" /etc/apt/sources.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get upgrade -y \
|
&& apt-get upgrade -y \
|
||||||
&& apt-get install -y curl wget gnupg git python3-pip fonts-wqy-microhei xfonts-utils chromium fontconfig libxss1 libgl1 \
|
&& apt-get install -y curl wget gnupg git python3-pip python3-venv fonts-wqy-microhei xfonts-utils chromium fontconfig libxss1 libgl1 \
|
||||||
&& apt-get autoremove \
|
&& apt-get autoremove \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
|
@ -37,8 +37,11 @@ RUN git config --global --add safe.directory '*' \
|
||||||
RUN npm install pnpm -g
|
RUN npm install pnpm -g
|
||||||
|
|
||||||
RUN ln -s /usr/bin/python3 /usr/bin/python \
|
RUN ln -s /usr/bin/python3 /usr/bin/python \
|
||||||
&& curl -fsSL https://install.python-poetry.org | python - \
|
&& POETRY_HOME=$HOME/venv-poetry \
|
||||||
&& ln -s /$HOME/.local/bin/poetry /usr/bin \
|
&& python -m venv $POETRY_HOME \
|
||||||
|
&& $POETRY_HOME/bin/pip install --upgrade pip setuptools -i https://pypi.tuna.tsinghua.edu.cn/simple \
|
||||||
|
&& $POETRY_HOME/bin/pip install poetry -i https://pypi.tuna.tsinghua.edu.cn/simple \
|
||||||
|
&& ln -s $POETRY_HOME/bin/poetry /usr/bin \
|
||||||
&& poetry config virtualenvs.in-project true
|
&& poetry config virtualenvs.in-project true
|
||||||
|
|
||||||
RUN rm -rf /var/cache/* \
|
RUN rm -rf /var/cache/* \
|
||||||
|
|
|
@ -28,10 +28,10 @@ if [[ -z $(git status -s) ]]; then
|
||||||
echo -e " ${Warn} ${YellowBG} 当前工作区有修改,尝试暂存后更新。${Font}"
|
echo -e " ${Warn} ${YellowBG} 当前工作区有修改,尝试暂存后更新。${Font}"
|
||||||
git add .
|
git add .
|
||||||
git stash
|
git stash
|
||||||
git pull origin main --allow-unrelated-histories --rebase
|
git pull origin master --allow-unrelated-histories --rebase
|
||||||
git stash pop
|
git stash pop
|
||||||
else
|
else
|
||||||
git pull origin main --allow-unrelated-histories
|
git pull origin master --allow-unrelated-histories
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f "$HOME/.ovo/yunzai.ok" ]]; then
|
if [[ ! -f "$HOME/.ovo/yunzai.ok" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue