randydev commited on
Commit
1915180
1 Parent(s): 6c02ad6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -14
Dockerfile CHANGED
@@ -42,20 +42,26 @@ RUN apt -qq update && \
42
  apt-get clean && \
43
  rm -rf /var/lib/apt/lists/
44
 
45
- RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
46
- && dpkg -i google-chrome-stable_current_amd64.deb \
47
- && apt-get -fy install \
48
- && rm google-chrome-stable_current_amd64.deb
 
49
 
50
- RUN wget -q https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip \
51
- && unzip chromedriver_linux64.zip -d /usr/local/bin/ \
52
- && rm chromedriver_linux64.zip
 
 
53
 
54
- ENV CHROME_BIN = "/usr/bin/google-chrome"
55
- ENV CHROME_DRIVER = "/usr/local/bin/chromedriver"
 
 
56
 
57
  COPY . .
58
  COPY requirements.txt .
 
59
  RUN pip3 install -r requirements.txt
60
 
61
  RUN chmod +x /usr/local/bin/chromedriver
@@ -67,11 +73,6 @@ RUN chmod 777 /app
67
  RUN chown -R 1000:0 /.cache
68
  RUN chmod 777 /.cache
69
 
70
- RUN mkdir -p uploads && chmod 777 uploads
71
-
72
- RUN pip3 install --upgrade pip setuptools==59.6.0
73
- RUN pip3 install -r requirements.txt
74
-
75
  RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
76
  RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.md5
77
  RUN md5sum -c ffmpeg-git-amd64-static.tar.xz.md5
 
42
  apt-get clean && \
43
  rm -rf /var/lib/apt/lists/
44
 
45
+ RUN mkdir -p /tmp/ && \
46
+ cd /tmp/ && \
47
+ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
48
+ dpkg -i ./google-chrome-stable_current_amd64.deb; apt -fqqy install && \
49
+ rm ./google-chrome-stable_current_amd64.deb
50
 
51
+ RUN mkdir -p /tmp/ && \
52
+ cd /tmp/ && \
53
+ wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \
54
+ unzip /tmp/chromedriver.zip chromedriver -d /usr/bin/ && \
55
+ rm /tmp/chromedriver.zip
56
 
57
+ RUN mkdir -p uploads && chmod 777 uploads
58
+
59
+ ENV CHROME_DRIVER /usr/bin/chromedriver
60
+ ENV CHROME_BIN /usr/bin/google-chrome-stable
61
 
62
  COPY . .
63
  COPY requirements.txt .
64
+ RUN pip3 install --upgrade pip setuptools
65
  RUN pip3 install -r requirements.txt
66
 
67
  RUN chmod +x /usr/local/bin/chromedriver
 
73
  RUN chown -R 1000:0 /.cache
74
  RUN chmod 777 /.cache
75
 
 
 
 
 
 
76
  RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
77
  RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.md5
78
  RUN md5sum -c ffmpeg-git-amd64-static.tar.xz.md5