Skip to content

Commit

Permalink
fix: 修复 python 的 docker 配置错误
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen committed Oct 27, 2023
1 parent ced88d6 commit 7f98f1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export const COMMON_DEPENDENCIES = {
'lodash-es': '^4.17.21',
'push-all-in-one': '^2.2.0',
'leancloud-storage': '^4.15.0',
// md5: '^2.3.0',
yaml: '^2.3.3',

},
}

Expand All @@ -78,8 +79,9 @@ export const NODE_DEPENDENCIES = {
},
dependencies: {
dotenv: '^16.3.1',
rimraf: '^5.0.0',
log4js: '^6.9.1',
md5: '^2.3.0',
rimraf: '^5.0.0',
},
}

Expand Down
4 changes: 2 additions & 2 deletions templates/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ RUN echo "http://mirrors.aliyun.com/alpine/edge/main/" > /etc/apk/repositories \
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
&& mkdir -p ~/.pip \
&& echo "[global]" > ~/.pip/pip.conf \
&& echo "index-url=http://mirrors.cloud.aliyuncs.com/pypi/simple/" >> ~/.pip/pip.conf \
&& echo "index-url=https://pypi.tuna.tsinghua.edu.cn/simple/" >> ~/.pip/pip.conf \
&& echo "[install]" >> ~/.pip/pip.conf \
&& echo "trusted-host=mirrors.cloud.aliyuncs.com" >> ~/.pip/pip.conf \
&& echo "trusted-host=pypi.tuna.tsinghua.edu.cn" >> ~/.pip/pip.conf \
&& pip install --upgrade pip && pip install wheel

WORKDIR /home/app
Expand Down

0 comments on commit 7f98f1b

Please sign in to comment.