Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ COPY --link app/ ./app/
# tools/check_all_lfs.bash and references tools/runANN/ANNTest.cpp.
COPY --link tools/ ./tools/
COPY --link src/ ./src/
COPY --link third_party/ ./third_party/

# -march=native is off: this image is published and has to run on CPUs other
# than the builder's. The LFS check is off too: tests/ is not copied into this
# stage, so it could only fail.
# than the builder's. The LFS check and the unit tests are off too: tests/ is
# not copied into this stage, so they could only fail.
#
# Only libforefireL.so is carried into the runtime stage, and the wheel build
# below compiles the core again on its own terms, so building the `forefire`
# and ANN_test executables here as well would just be a wasted compile.
RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DFOREFIRE_NATIVE_ARCH=OFF -DFOREFIRE_CHECK_LFS=OFF \
RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DFOREFIRE_NATIVE_ARCH=OFF -DFOREFIRE_CHECK_LFS=OFF -DFOREFIRE_BUILD_TESTS=OFF \
&& cmake --build build -j"$(nproc)" --target forefireL

COPY --link bindings/ ./bindings/
Expand Down
Loading