自动化构建 Python 3.10 + Cloud Center
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
bae699bbde
commit
b7e4657a1f
|
@ -4,7 +4,7 @@ FROM python:3
|
|||
LABEL Project="CloudCenter"
|
||||
LABEL Author="lzwang"
|
||||
LABEL Email="zhuangwang82@gmail.com"
|
||||
LABEL Version=0.2
|
||||
LABEL Version="nightly"
|
||||
|
||||
# setup volume
|
||||
VOLUME /project
|
||||
|
@ -37,7 +37,7 @@ RUN npm install -g cnpm --registry=https://registry.npm.taobao.org \
|
|||
&& npm config set registry https://registry.npm.taobao.org
|
||||
|
||||
# copy gitsh script
|
||||
COPY ./gitsh /project/tools/gitsh
|
||||
COPY ./cloud-center/gitsh /project/tools/gitsh
|
||||
RUN chmod +x /project/tools/gitsh
|
||||
|
||||
# setup mirrors of pip
|
||||
|
@ -45,7 +45,7 @@ RUN chmod +x /project/tools/gitsh
|
|||
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
# python pip install dependencies
|
||||
COPY ./requirements.txt /project/requirements.txt
|
||||
COPY ./cloud-center/requirements.txt /project/requirements.txt
|
||||
|
||||
# redis must > 4.0 (ignore slowapi requirement)
|
||||
RUN pip install --no-cache-dir --upgrade pip \
|
||||
|
@ -67,4 +67,4 @@ RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|||
&& date
|
||||
|
||||
# on start up
|
||||
CMD ["python3", "/project/CloudCenter/main.py"]
|
||||
CMD ["python3"]
|
||||
|
|
Loading…
Reference in New Issue