Spaces:
Running
Running
Update Dockerfile
Browse files- 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
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
49 |
|
50 |
-
RUN
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
|
54 |
-
|
55 |
-
|
|
|
|
|
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
|