Skip to content

Commit 6dd8021

Browse files
committed
🎨: 更新Dockerfile
1 parent 2e5708b commit 6dd8021

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -U pip \
2424
&& pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/ \
2525
&& pip3 install virtualenv
2626

27-
# Create and activate virtual environment
28-
# Using a virtual environment prevents conflicts between the app's dependencies and the system
29-
RUN python3.11 -m virtualenv venv
27+
# Check virtualenv is installed
28+
RUN which virtualenv
29+
30+
# Create and activate virtual environment using the virtualenv command
31+
RUN virtualenv venv -p python3.11
32+
33+
# Set the virtual environment path
3034
ENV PATH="/app/venv/bin:$PATH"
3135

3236
# Install dependencies in the virtual environment

0 commit comments

Comments
 (0)