From 96835ebd3342a94987adc1c900fc616033b19a2a Mon Sep 17 00:00:00 2001 From: Dark Dragon Date: Sun, 31 Dec 2023 17:51:36 +0100 Subject: [PATCH] Set entrypoint to yarr executable This allows passing args as CMD directly without knowing the path to yarr within the container --- etc/dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/dockerfile b/etc/dockerfile index 11777a7..ef6c0f1 100644 --- a/etc/dockerfile +++ b/etc/dockerfile @@ -9,4 +9,5 @@ RUN apk add --no-cache ca-certificates && \ update-ca-certificates COPY --from=build /src/_output/linux/yarr /usr/local/bin/yarr EXPOSE 7070 -CMD ["/usr/local/bin/yarr", "-addr", "0.0.0.0:7070", "-db", "/data/yarr.db"] +ENTRYPOINT ["/usr/local/bin/yarr"] +CMD ["-addr", "0.0.0.0:7070", "-db", "/data/yarr.db"]