File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake pyth
5
5
6
6
COPY . /repo
7
7
WORKDIR /repo/build
8
- RUN cmake ..
8
+ RUN cmake .. -DCMAKE_INSTALL_PREFIX=/install
9
9
RUN make -j8
10
-
11
- RUN mkdir -p /deps
12
- RUN ldd /repo/build/pycdc | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'cp % /deps;'
10
+ RUN make install
13
11
14
12
FROM ubuntu:22.04 as package
15
-
16
- COPY --from=builder /deps /deps
17
- COPY --from=builder /repo/build/pycdc /repo/build/pycdc
18
- ENV LD_LIBRARY_PATH=/deps
13
+ COPY --from=builder /install /install
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ project: pycdc
2
2
target: pycdc
3
3
4
4
cmds:
5
- - cmd: /repo/build /pycdc @@
5
+ - cmd: /install/bin /pycdc @@
You can’t perform that action at this time.
0 commit comments