From 259d3b4a99b5d4c4a5524615b7bbb7248f65d638 Mon Sep 17 00:00:00 2001 From: blue Date: Sun, 10 Dec 2023 20:33:23 -0300 Subject: [PATCH] better installation on pica standalone --- pica-standalone/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pica-standalone/Dockerfile b/pica-standalone/Dockerfile index c1380df..d48217c 100644 --- a/pica-standalone/Dockerfile +++ b/pica-standalone/Dockerfile @@ -17,9 +17,11 @@ RUN tar -xvzf main.tar.gz && \ cd pica && \ mkdir build && \ cd build && \ - cmake .. && \ - cmake --build . + cmake .. -D CMAKE_INSTALL_PREFIX=/usr && \ + cmake --build . && \ + mkdir install && \ + DESTDIR=install cmake --install . FROM thebluestbird/pica-environment:latest -COPY --from=0 /pica/pica/build/pica /usr/bin/ +COPY --from=0 /pica/pica/build/install / CMD ["/usr/bin/pica"]