BloodyInside commited on
Commit
0433687
1 Parent(s): 4855d7d
Files changed (1) hide show
  1. 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=`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 set -ex && \
36
- pip install --upgrade pip && \
37
- pip install -r /tmp/requirements.txt && \
38
- rm -rf /root/.cache/
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