feat: update python in docker to 3.10

This commit is contained in:
lanvent
2023-03-30 00:32:40 +08:00
parent 90ccb091ca
commit 4bcd76fe93
5 changed files with 24 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.7.9
FROM python:3.10
LABEL maintainer="foo@bar.com"
ARG TZ='Asia/Shanghai'
@@ -23,9 +23,7 @@ RUN apt-get update \
&& cd ${BUILD_PREFIX} \
&& cp config-template.json ${BUILD_PREFIX}/config.json \
&& /usr/local/bin/python -m pip install --no-cache --upgrade pip \
&& pip install --no-cache \
itchat-uos==1.5.0.dev0 \
openai
&& pip install --no-cache -r requirements.txt
WORKDIR ${BUILD_PREFIX}