21 lines
581 B
Docker
21 lines
581 B
Docker
FROM docker.io/library/python:3-slim as catatonit
|
|
|
|
RUN apt update \
|
|
&& apt -y install catatonit
|
|
|
|
FROM docker.io/library/python:3-slim
|
|
|
|
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
|
|
|
|
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}"]
|