Skip to content

Commit

Permalink
Adjust dockerfile so layers can be cached better (#3488)
Browse files Browse the repository at this point in the history
Also compile TileDB with all cores available.
  • Loading branch information
Shelnutt2 authored Aug 25, 2022
1 parent f055f44 commit 56ecbd9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/Dockerfile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ RUN useradd tiledb \
&& chown tiledb /home/tiledb
ENV HOME /home/tiledb

# Copy TileDB source files from the build context.
COPY . /home/tiledb/TileDB

# Install dependencies, accepting prompts with their default value.
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
Expand All @@ -37,6 +34,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
&& rm -rf /var/lib/apt/lists* \
&& pip3 install cmake

# Copy TileDB source files from the build context.
COPY . /home/tiledb/TileDB

# Build and install TileDB.
RUN cd /home/tiledb/TileDB \
&& mkdir build \
Expand All @@ -49,8 +49,8 @@ RUN cd /home/tiledb/TileDB \
--enable-serialization \
--enable-tools \
--enable=${enable} \
&& make -j2 \
&& make -j2 examples \
&& make -j$(nproc) \
&& make -j$(nproc) examples \
&& make install-tiledb \
# Update shared library links/cache.
&& ldconfig \
Expand Down

0 comments on commit 56ecbd9

Please sign in to comment.