praeclarumjj3 commited on
Commit
72c8505
·
1 Parent(s): 722c332
Files changed (1) hide show
  1. Dockerfile +10 -9
Dockerfile CHANGED
@@ -14,9 +14,9 @@ RUN apt-get update && apt-get install -y \
14
  RUN apt-get -y update
15
  RUN apt install -y software-properties-common
16
  RUN add-apt-repository ppa:deadsnakes/ppa
17
- RUN apt-get -y install python3.9
18
  RUN apt-get -y install python3-pip
19
- RUN apt install -y python3.9-distutils
20
 
21
  RUN useradd -ms /bin/bash admin
22
  USER admin
@@ -41,12 +41,13 @@ RUN chmod 755 $WORKDIR
41
 
42
  COPY requirements.txt $WORKDIR/requirements.txt
43
  COPY oneformer $WORKDIR/oneformer
44
- RUN python3.9 --version
45
- RUN python3.9 -m pip install --upgrade pip
46
- RUN python3.9 -m pip install multidict
47
- RUN python3.9 -m pip install typing-extensions
48
- RUN python3.9 -m pip install gradio --no-cache-dir
49
- RUN python3.9 -m pip install --no-cache-dir --upgrade -r $WORKDIR/requirements.txt
 
50
 
51
  COPY . .
52
 
@@ -59,4 +60,4 @@ USER admin
59
 
60
  EXPOSE 7860
61
 
62
- ENTRYPOINT ["python3.9", "gradio_app.py"]
 
14
  RUN apt-get -y update
15
  RUN apt install -y software-properties-common
16
  RUN add-apt-repository ppa:deadsnakes/ppa
17
+ RUN apt-get -y install python3.8
18
  RUN apt-get -y install python3-pip
19
+ RUN apt install -y python3.8-distutils
20
 
21
  RUN useradd -ms /bin/bash admin
22
  USER admin
 
41
 
42
  COPY requirements.txt $WORKDIR/requirements.txt
43
  COPY oneformer $WORKDIR/oneformer
44
+ RUN python3.8 --version
45
+ RUN python3.8 -m pip install -y --upgrade pip
46
+ RUN python3.8 -m pip install -y multidict
47
+ RUN python3.8 -m pip install -y typing-extensions
48
+ RUN python3.8 -m pip install -y --upgrade setuptools
49
+ RUN python3.8 -m pip install -y gradio --no-cache-dir
50
+ RUN python3.8 -m pip install -y --no-cache-dir --upgrade -r $WORKDIR/requirements.txt
51
 
52
  COPY . .
53
 
 
60
 
61
  EXPOSE 7860
62
 
63
+ ENTRYPOINT ["python3.8", "gradio_app.py"]