From f5ea0ee74e7218b8732ad6ecda7b5fed36f96e77 Mon Sep 17 00:00:00 2001 From: Derek Date: Fri, 30 Aug 2024 16:16:49 -0700 Subject: [PATCH] change binary locations and set permissions --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 75e9d065..2dc7f117 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,8 +29,10 @@ FROM alpine:3.18 WORKDIR /root/ # Copy the binaries from the builder stage -COPY --from=builder /app/erpc-server . -COPY --from=builder /app/erpc-server-pprof . +COPY --from=builder /app/erpc-server /usr/bin/erpc-server +COPY --from=builder /app/erpc-server-pprof /usr/bin/erpc-server-pprof + +RUN chmod 777 /usr/bin/erpc-server* # 8080 -> erpc # 6060 -> pprof (optional) @@ -40,4 +42,4 @@ EXPOSE 8080 6060 ENV PPROF=false # Run the appropriate binary based on the environment variable -CMD if [ "$PPROF" = "true" ]; then ./erpc-server-pprof; else ./erpc-server; fi \ No newline at end of file +CMD if [ "$PPROF" = "true" ]; then /usr/bin/erpc-server-pprof; else /usr/bin/erpc-server; fi \ No newline at end of file