update
This commit is contained in:
parent
33bbea3406
commit
d88d73af6c
@ -25,6 +25,7 @@ RUN apt-get update \
|
|||||||
build-essential \
|
build-essential \
|
||||||
default-libmysqlclient-dev \
|
default-libmysqlclient-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 设置工作目录
|
# 设置工作目录
|
||||||
@ -33,10 +34,11 @@ WORKDIR /app
|
|||||||
# 复制项目文件
|
# 复制项目文件
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
COPY app app/
|
COPY app app/
|
||||||
|
COPY *.py ./
|
||||||
|
|
||||||
# 安装Python依赖
|
# 安装Python依赖
|
||||||
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt \
|
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt \
|
||||||
&& pip install uvicorn
|
&& pip install -i https://mirrors.aliyun.com/pypi/simple/ uvicorn
|
||||||
|
|
||||||
# 暴露端口
|
# 暴露端口
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|||||||
@ -9,4 +9,5 @@ qcloud-python-sts==3.1.4
|
|||||||
sqlalchemy==2.0.23
|
sqlalchemy==2.0.23
|
||||||
pymysql==1.1.0
|
pymysql==1.1.0
|
||||||
cryptography==41.0.5
|
cryptography==41.0.5
|
||||||
alembic==1.12.1
|
alembic==1.12.1
|
||||||
|
python-multipart==0.0.12
|
||||||
Loading…
Reference in New Issue
Block a user