Fix permissions and added arguments support
Signed-off-by: Leonardo Amaral <contato@leonardoamaral.com.br>
This commit is contained in:
parent
6addf7a778
commit
485bcdb109
@ -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}"]
|
||||||
|
Loading…
Reference in New Issue
Block a user