We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e5708b commit 6dd8021Copy full SHA for 6dd8021
1 file changed
Dockerfile
@@ -24,9 +24,13 @@ RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -U pip \
24
&& pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/ \
25
&& pip3 install virtualenv
26
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
+# Check virtualenv is installed
+RUN which virtualenv
+
30
+# Create and activate virtual environment using the virtualenv command
31
+RUN virtualenv venv -p python3.11
32
33
+# Set the virtual environment path
34
ENV PATH="/app/venv/bin:$PATH"
35
36
# Install dependencies in the virtual environment
0 commit comments