Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -38,8 +38,9 @@ RUN apt-get update && apt-get install -y \
|
|
38 |
python3.9 \
|
39 |
python3.9-distutils \
|
40 |
python3.9-dev \
|
|
|
41 |
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 \
|
42 |
-
&& update-alternatives --install /usr/bin/pip pip /usr/bin/
|
43 |
&& rm -rf /var/lib/apt/lists/*
|
44 |
|
45 |
# Verify Python and pip versions
|
@@ -59,10 +60,9 @@ RUN chown -R user:user /home/user/app
|
|
59 |
|
60 |
USER user
|
61 |
|
62 |
-
|
63 |
# Set the environment variable to specify the GPU device
|
64 |
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
65 |
ENV CUDA_VISIBLE_DEVICES=0
|
66 |
|
67 |
# Command to run your application
|
68 |
-
CMD ["python", "app.py"]
|
|
|
38 |
python3.9 \
|
39 |
python3.9-distutils \
|
40 |
python3.9-dev \
|
41 |
+
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9 \
|
42 |
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 \
|
43 |
+
&& update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip 1 \
|
44 |
&& rm -rf /var/lib/apt/lists/*
|
45 |
|
46 |
# Verify Python and pip versions
|
|
|
60 |
|
61 |
USER user
|
62 |
|
|
|
63 |
# Set the environment variable to specify the GPU device
|
64 |
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
65 |
ENV CUDA_VISIBLE_DEVICES=0
|
66 |
|
67 |
# Command to run your application
|
68 |
+
CMD ["python", "app.py"]
|