Skip to content

Commit b5c4eb2

Browse files
authored
chore: venus docker : docker move copying ddl to the stage when runtime was built (#5092)
* feat: add ddl when runtime was build
1 parent 3eaaa30 commit b5c4eb2

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

docker/venus-runtime.dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,18 @@ RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \
1313

1414
# set charset
1515
ENV LANG C.UTF-8
16+
17+
18+
# copy ddl
19+
COPY --from=filvenus/venus-buildenv /usr/lib/x86_64-linux-gnu/libhwloc.so.15 \
20+
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1 \
21+
/lib/x86_64-linux-gnu/libgcc_s.so.1 \
22+
/lib/x86_64-linux-gnu/libutil.so.1 \
23+
/lib/x86_64-linux-gnu/librt.so.1 \
24+
/lib/x86_64-linux-gnu/libpthread.so.0 \
25+
/lib/x86_64-linux-gnu/libm.so.6 \
26+
/lib/x86_64-linux-gnu/libdl.so.2 \
27+
/lib/x86_64-linux-gnu/libc.so.6 \
28+
/usr/lib/x86_64-linux-gnu/libnuma.so.1 \
29+
/usr/lib/x86_64-linux-gnu/libltdl.so.7 \
30+
/lib/

dockerfile

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,6 @@ WORKDIR /app
1414
COPY --from=buildenv /go/venus/venus /app/venus
1515
COPY ./docker/script /script
1616

17-
# copy ddl
18-
COPY --from=buildenv /usr/lib/x86_64-linux-gnu/libhwloc.so.15 \
19-
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1 \
20-
/lib/x86_64-linux-gnu/libgcc_s.so.1 \
21-
/lib/x86_64-linux-gnu/libutil.so.1 \
22-
/lib/x86_64-linux-gnu/librt.so.1 \
23-
/lib/x86_64-linux-gnu/libpthread.so.0 \
24-
/lib/x86_64-linux-gnu/libm.so.6 \
25-
/lib/x86_64-linux-gnu/libdl.so.2 \
26-
/lib/x86_64-linux-gnu/libc.so.6 \
27-
/usr/lib/x86_64-linux-gnu/libnuma.so.1 \
28-
/usr/lib/x86_64-linux-gnu/libltdl.so.7 \
29-
/lib/
3017

3118
EXPOSE 3453
3219
ENTRYPOINT ["/app/venus","daemon"]

0 commit comments

Comments
 (0)