1
0

Fix permissions and added arguments support

Signed-off-by: Leonardo Amaral <contato@leonardoamaral.com.br>
This commit is contained in:
Leonardo Amaral 2024-08-05 16:42:58 -03:00
parent 6addf7a778
commit 485bcdb109
Signed by: leonardo
SSH Key Fingerprint: SHA256:5aHb9wgXOaC7ZHAfMBTvRdJBrNsxHf8jC5p/4aUlFCo

View File

@ -5,12 +5,16 @@ RUN apt update \
FROM docker.io/library/python:3-slim FROM docker.io/library/python:3-slim
COPY --from=catatonit /usr/libexec/podman/catatonit /catatonit COPY --from=catatonit --chmod=0755 /usr/libexec/podman/catatonit /usr/libexec/podman/catatonit
ADD https://raw.githubusercontent.com/simon-budig/woof/woof-20220202/woof /usr/bin/woof ADD --chmod=0755 https://raw.githubusercontent.com/simon-budig/woof/woof-20220202/woof /usr/bin/woof
RUN mkdir /data RUN mkdir /data
WORKDIR /data WORKDIR /data
EXPOSE 8008 EXPOSE 8008
ENTRYPOINT ["/catatonit", "--"] ENV PORT 8008
CMD ["/usr/local/bin/python3", "/usr/bin/woof", "-i", "0.0.0.0", "-p", "8008", "-c", "1", "-U"] 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}"]