Skip to content

Commit 50dacb0

Browse files
committed
Dockerfile: disable pip version check
This avoids contacting a remote server during image build, which speeds up the build marginally.
1 parent 0fbb524 commit 50dacb0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ COPY docker/constraints.in /conf/requirements.txt
4646
COPY docker/constraints.txt docker/nobinary.txt /conf/
4747

4848

49-
RUN . /env/bin/activate && python3 -m pip install --no-cache-dir --upgrade pip setuptools
50-
RUN . /env/bin/activate && python3 -m pip install --no-cache-dir -r /conf/requirements.txt \
49+
RUN . /env/bin/activate && python3 -m pip --disable-pip-version-check install --no-cache-dir --upgrade pip setuptools
50+
RUN . /env/bin/activate && python3 -m pip --disable-pip-version-check install --no-cache-dir -r /conf/requirements.txt \
5151
-c /conf/constraints.txt \
5252
-c /conf/nobinary.txt
5353

5454
# Copy datacube-core source code into container and install from source (with addons for tests).
5555
COPY . /code
5656

57-
RUN . /env/bin/activate && python3 -m pip install --no-cache-dir '/code/[all]' \
58-
&& python3 -m pip install --no-cache-dir /code/examples/io_plugin \
59-
&& python3 -m pip install --no-cache-dir /code/tests/drivers/fail_drivers
57+
RUN . /env/bin/activate && python3 -m pip --disable-pip-version-check install --no-cache-dir '/code/[all]' \
58+
&& python3 -m pip --disable-pip-version-check install --no-cache-dir /code/examples/io_plugin \
59+
&& python3 -m pip --disable-pip-version-check install --no-cache-dir /code/tests/drivers/fail_drivers
6060

6161
# Copy bootstrap script into image.
6262
COPY docker/assets/with_bootstrap /usr/local/bin/

0 commit comments

Comments
 (0)