abdullahmubeen10 commited on
Commit
0e15413
·
verified ·
1 Parent(s): 9b1d12d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -22,10 +22,15 @@ RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update
22
  # Install Python 3.4
23
  RUN apt-get install -y python3.4 python3.4-dev python3.4-venv
24
 
25
- # Set Python 3.4 as default (optional)
26
- RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.4 1
 
 
27
 
28
- # Copy requirements file
 
 
 
29
  COPY requirements.txt /tmp/requirements.txt
30
 
31
  # Install Python dependencies
 
22
  # Install Python 3.4
23
  RUN apt-get install -y python3.4 python3.4-dev python3.4-venv
24
 
25
+ # Install pip for Python 3.4
26
+ RUN curl https://bootstrap.pypa.io/pip/3.4/get-pip.py -o get-pip.py && \
27
+ python3.4 get-pip.py && \
28
+ rm get-pip.py
29
 
30
+ # Verify Python and pip versions
31
+ RUN python3.4 --version && python3.4 -m pip --version
32
+
33
+ # Copy requirements file (if applicable)
34
  COPY requirements.txt /tmp/requirements.txt
35
 
36
  # Install Python dependencies