docker运行python3.7
FROM python:3.8 AS pipenv_build RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && pip install pipenv COPY ./Pipfile* /tmp/ RUN cd /tmp && pipenv lock --requirements > requirements.txt # ========== FROM python:3.8 WORKDIR /src COPY --from=pipenv_build /tmp/requirements.txt . RUN pip install -r requirements.txt ADD . . CMD uvicorn server:app --host=0.0.0.0 --port=5000
相关推荐
王道革 2020-11-25
bwyyziq 2020-11-22
pigsmall 2020-11-19
changecan 2020-11-19
helloWorldAndYou 2020-11-16
nginxs 2020-11-14
红石丶 2020-11-13
WanKaShing 2020-11-12
yangkang 2020-11-12
滴水穿石点石成金 2020-11-12
张荣珍 2020-11-12
wuxunanjing 2020-11-11
魅惑青花瓷 2020-11-11
lihongtai 2020-11-09
yangkang 2020-11-09
worldsnow 2020-11-06
MichaelJScofield 2020-11-06
TaoTaoFu 2020-11-06