From f77733be71641362e0ed28fcf619000e078c4141 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Mon, 4 Aug 2025 19:03:30 +0200 Subject: [PATCH] changed entry point setup --- Dockerfile.linux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.linux b/Dockerfile.linux index 69e4290..9841ad2 100644 --- a/Dockerfile.linux +++ b/Dockerfile.linux @@ -16,7 +16,7 @@ copy ./WatcherAgent/ . run cargo build --release --target x86_64-unknown-linux-gnu # Setze Berechtigungen für das Binary -RUN chmod +x /app/target/x86_64-unknown-linux-gnu/release/$BINARY_NAME +run chmod +x /app/target/x86_64-unknown-linux-gnu/release/$BINARY_NAME # Final Linux image from debian:bullseye-slim @@ -28,12 +28,12 @@ run apt-get update && \ && rm -rf /var/lib/apt/lists/* # Make binary name configurable -ARG BINARY_NAME -ENV BINARY_NAME=${BINARY_NAME:-WatcherAgent} +arg BINARY_NAME +env BINARY_NAME=${BINARY_NAME:-WatcherAgent} copy --from=linux-builder /app/target/x86_64-unknown-linux-gnu/release/$BINARY_NAME /usr/local/bin/ # Health check healthcheck --interval=30s --timeout=3s \ cmd /usr/local/bin/$BINARY_NAME healthcheck || exit 1 -entrypoint ["/usr/local/bin/$BINARY_NAME"] \ No newline at end of file +ENTRYPOINT ["/bin/sh", "-c", "/usr/local/bin/${BINARY_NAME}"] \ No newline at end of file