Skip to content

Commit

Permalink
fix dockerfile entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull committed Dec 12, 2024
1 parent 64e2bbb commit 185d7eb
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions docker-files/cpp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ RUN apt-get -q update && apt-get install -qy --no-install-recommends vim \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /data/home/wedpr/wedpr-gateway-service
COPY --from=builder /WeDPR-Component/cpp/build/bin/ppc-gateway-service /usr/local/bin/ppc-gateway-service

COPY --from=builder /WeDPR-Component/cpp/build/bin/ppc-gateway-service /data/home/wedpr/wedpr-gateway-service/ppc-gateway-service

ENTRYPOINT ["/data/home/wedpr/wedpr-gateway-service/ppc-gateway-service", "-c", "config.ini"]
ENTRYPOINT ["/usr/local/bin/ppc-gateway-service"]
CMD ["--version"]

FROM ubuntu:22.04 as wedpr-pro-node-service
LABEL [email protected]
Expand All @@ -60,11 +59,10 @@ RUN apt-get -q update && apt-get install -qy --no-install-recommends vim libkrb5
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /data/home/wedpr/wedpr-pro-node-service

COPY --from=builder /WeDPR-Component/cpp/build/bin/ppc-pro-node /data/home/wedpr/wedpr-pro-node-service/ppc-pro-node
COPY --from=builder /WeDPR-Component/cpp/build/bin/ppc-pro-node /usr/local/bin/ppc-pro-node

ENTRYPOINT ["/data/home/wedpr/wedpr-pro-node-service/ppc-pro-node", "-c", "config.ini"]
ENTRYPOINT ["/usr/local/bin/ppc-pro-node"]
CMD ["--version"]

FROM fiscoorg/wedpr-mpc-base-ubuntu:v3.0.0 as wedpr-mpc-service
LABEL [email protected]
Expand All @@ -75,8 +73,8 @@ RUN apt-get -q update && apt-get install -qy --no-install-recommends vim libkrb5
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /data/home/wedpr/wedpr-mpc-service

COPY --from=builder /WeDPR-Component/cpp/build/bin/wedpr-mpc /data/home/wedpr/wedpr-mpc-service/wedpr-mpc
COPY --from=builder /WeDPR-Component/cpp/build/bin/wedpr-mpc /usr/local/bin/wedpr-mpc

ENTRYPOINT ["/data/home/wedpr/wedpr-mpc-service/wedpr-mpc", "-c", "config.ini"]
ENTRYPOINT ["/usr/local/bin/wedpr-mpc"]
CMD ["--version"]

0 comments on commit 185d7eb

Please sign in to comment.