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}"]