Spaces:
Running
Running
BloodyInside
commited on
Commit
•
0433687
1
Parent(s):
4855d7d
push
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -26,16 +26,16 @@ RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add
|
|
26 |
&& apt-get install -y google-chrome-stable
|
27 |
|
28 |
# Install ChromeDriver
|
29 |
-
RUN CHROMEDRIVER_VERSION
|
30 |
&& wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip \
|
31 |
&& unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
|
32 |
|
33 |
# Install Python dependencies
|
34 |
COPY requirements.txt /tmp/requirements.txt
|
35 |
-
RUN
|
36 |
-
pip install --
|
37 |
-
|
38 |
-
|
39 |
COPY . /code
|
40 |
|
41 |
WORKDIR /code
|
|
|
26 |
&& apt-get install -y google-chrome-stable
|
27 |
|
28 |
# Install ChromeDriver
|
29 |
+
RUN CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE) \
|
30 |
&& wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip \
|
31 |
&& unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
|
32 |
|
33 |
# Install Python dependencies
|
34 |
COPY requirements.txt /tmp/requirements.txt
|
35 |
+
RUN pip install --no-cache-dir --upgrade pip \
|
36 |
+
&& pip install --no-cache-dir -r /tmp/requirements.txt
|
37 |
+
|
38 |
+
# Copy application code
|
39 |
COPY . /code
|
40 |
|
41 |
WORKDIR /code
|