From 485bcdb1097344b0c348bfd47829d8d38417b927 Mon Sep 17 00:00:00 2001 From: Leonardo Amaral Date: Mon, 5 Aug 2024 16:42:58 -0300 Subject: [PATCH] Fix permissions and added arguments support Signed-off-by: Leonardo Amaral --- Containerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Containerfile b/Containerfile index 725b5cb..87a1074 100644 --- a/Containerfile +++ b/Containerfile @@ -5,12 +5,16 @@ RUN apt update \ FROM docker.io/library/python:3-slim -COPY --from=catatonit /usr/libexec/podman/catatonit /catatonit -ADD https://raw.githubusercontent.com/simon-budig/woof/woof-20220202/woof /usr/bin/woof +COPY --from=catatonit --chmod=0755 /usr/libexec/podman/catatonit /usr/libexec/podman/catatonit +ADD --chmod=0755 https://raw.githubusercontent.com/simon-budig/woof/woof-20220202/woof /usr/bin/woof RUN mkdir /data WORKDIR /data EXPOSE 8008 -ENTRYPOINT ["/catatonit", "--"] -CMD ["/usr/local/bin/python3", "/usr/bin/woof", "-i", "0.0.0.0", "-p", "8008", "-c", "1", "-U"] +ENV PORT 8008 +ENV COUNT 1 +ENV ARGS -Z /data + +ENTRYPOINT [ "/usr/libexec/podman/catatonit", "--" ] +CMD ["/bin/sh", "-c", "/usr/local/bin/python3 /usr/bin/woof -i 0.0.0.0 -p ${PORT} -c ${COUNT} ${ARGS}"]