From a785acf416ae90f74ce67e9288e3a8e2fb2be345 Mon Sep 17 00:00:00 2001 From: Archi Date: Sat, 24 Jul 2021 00:29:22 +0200 Subject: [PATCH] Use /bin/sh as entrypoint in docker containers This way we can avoid a potential update process corruption which happened e.g. at https://github.com/JustArchiNET/ArchiSteamFarm/issues/2382 --- Dockerfile | 2 +- Dockerfile.Service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e723e4be..2f91c6f22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,4 +65,4 @@ WORKDIR /app COPY --from=build-dotnet /app/out/result . VOLUME ["/app/config", "/app/logs"] HEALTHCHECK CMD ["pidof", "-q", "dotnet"] -ENTRYPOINT ["./ArchiSteamFarm.sh", "--no-restart", "--process-required", "--system-required"] +ENTRYPOINT ["sh", "ArchiSteamFarm.sh", "--no-restart", "--process-required", "--system-required"] diff --git a/Dockerfile.Service b/Dockerfile.Service index edf6240fe..343fdb0f6 100644 --- a/Dockerfile.Service +++ b/Dockerfile.Service @@ -65,4 +65,4 @@ WORKDIR /app COPY --from=build-dotnet /app/out/result . VOLUME ["/app/config", "/app/logs"] HEALTHCHECK CMD ["pidof", "-q", "ArchiSteamFarm"] -ENTRYPOINT ["./ArchiSteamFarm-Service.sh", "--no-restart", "--process-required", "--system-required"] +ENTRYPOINT ["sh", "ArchiSteamFarm-Service.sh", "--no-restart", "--process-required", "--system-required"]