mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-21 09:50:14 +08:00
🎨: 更新Dockerfile
This commit is contained in:
parent
2e5708b3de
commit
6dd802129f
10
Dockerfile
10
Dockerfile
@ -24,9 +24,13 @@ RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -U pip \
|
|||||||
&& pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/ \
|
&& pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/ \
|
||||||
&& pip3 install virtualenv
|
&& pip3 install virtualenv
|
||||||
|
|
||||||
# Create and activate virtual environment
|
# Check virtualenv is installed
|
||||||
# Using a virtual environment prevents conflicts between the app's dependencies and the system
|
RUN which virtualenv
|
||||||
RUN python3.11 -m virtualenv venv
|
|
||||||
|
# Create and activate virtual environment using the virtualenv command
|
||||||
|
RUN virtualenv venv -p python3.11
|
||||||
|
|
||||||
|
# Set the virtual environment path
|
||||||
ENV PATH="/app/venv/bin:$PATH"
|
ENV PATH="/app/venv/bin:$PATH"
|
||||||
|
|
||||||
# Install dependencies in the virtual environment
|
# Install dependencies in the virtual environment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user