Skip to content

Commit

Permalink
Dockerfile: disable pip version check
Browse files Browse the repository at this point in the history
This avoids contacting a remote server
during image build, which speeds up
the build marginally.
  • Loading branch information
pjonsson authored and omad committed Oct 3, 2024
1 parent 0f26011 commit e9a6fbb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ COPY docker/constraints.in /conf/requirements.txt
COPY docker/constraints.txt docker/nobinary.txt /conf/


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

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

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

# Copy bootstrap script into image.
COPY docker/assets/with_bootstrap /usr/local/bin/
Expand Down

0 comments on commit e9a6fbb

Please sign in to comment.