From 6a0199a6f35d47fbb6652f7fd600b1efd229390f Mon Sep 17 00:00:00 2001 From: forcodedancing Date: Tue, 10 Oct 2023 14:44:32 +0800 Subject: [PATCH] fix dockerfile --- monitor-distroless.dockerfile | 5 ++--- server-distroless.dockerfile | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/monitor-distroless.dockerfile b/monitor-distroless.dockerfile index bb3dfdc..246d30f 100644 --- a/monitor-distroless.dockerfile +++ b/monitor-distroless.dockerfile @@ -22,12 +22,11 @@ RUN make build_monitor FROM gcr.io/distroless/cc-debian11:latest -ENV DATA_MARKETPLACE_HOME /opt/app -ENV CONFIG_FILE_PATH $DATA_MARKETPLACE_HOME/config/config.json +ENV CONFIG_FILE_PATH /opt/app/config/config.json ENV WORKDIR=/app WORKDIR ${WORKDIR} COPY --from=builder /opt/app/build/monitor ${WORKDIR} # Run the app -ENTRYPOINT ["/app/monitor", "--config-path", "$CONFIG_FILE_PATH"] +ENTRYPOINT /app/monitor --config-path "$CONFIG_FILE_PATH" diff --git a/server-distroless.dockerfile b/server-distroless.dockerfile index 3a894e8..dc69f8a 100644 --- a/server-distroless.dockerfile +++ b/server-distroless.dockerfile @@ -22,12 +22,11 @@ RUN make build_server FROM gcr.io/distroless/cc-debian11:latest -ENV DATA_MARKETPLACE_HOME /opt/app -ENV CONFIG_FILE_PATH $DATA_MARKETPLACE_HOME/config/config.json +ENV CONFIG_FILE_PATH /opt/app/config/config.json ENV WORKDIR=/app WORKDIR ${WORKDIR} COPY --from=builder /opt/app/build/server ${WORKDIR} # Run the app -ENTRYPOINT ["/app/server", "--config-path", "$CONFIG_FILE_PATH", "--port", "8080"] +ENTRYPOINT /app/server --port, 8080 --config-path "$CONFIG_FILE_PATH"