From 5cae91fda87369c9d1357898b64a33fef2ffcd95 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Fri, 27 Aug 2021 17:34:17 +0200 Subject: [PATCH] fixed exit code --- Dockerfile | 5 +++-- entrypoint.sh | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 73cc46d..f174469 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM fedora:35@sha256:524365ad5326cdaea6f9051f0f3c07dfed37bd1009da8bdefb859178c0bab776 +FROM fedora:34@sha256:22e172e14b1300ce473ca15a80c273676305ad6c7a57f0f8cb25816bfce8d196 ENV COMMANDER_VERSION="7ab3fd9a0ef4eb19d882cb3701d2025b4d41b63a" WORKDIR /app @@ -10,6 +10,7 @@ RUN dnf upgrade -y \ && pip3 install wheel \ && pip3 install -r /app/requirements.txt +COPY entrypoint.sh / VOLUME /data -ENTRYPOINT ["/bin/python3", "/app/matrix-commander.py" ,"-s", "/data/store", "-c", "/data/credentials.json"] +ENTRYPOINT ["bash", "/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..8a33788 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,2 @@ +/bin/python3 /app/matrix-commander.py -s /data/store -c /data/credentials.json +exit 0