From fd7ff591377b1829299b85848848600933828b6f Mon Sep 17 00:00:00 2001 From: s3lph Date: Fri, 20 Jul 2018 11:38:16 +0200 Subject: [PATCH] Wrapped command for running matemat in the staging container in a shell script --- Dockerfile | 2 +- run.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 run.sh diff --git a/Dockerfile b/Dockerfile index 044faee..c427a2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ ADD . / RUN pip3 install -r /requirements.txt EXPOSE 80/tcp -CMD [ "/usr/local/bin/python3", "-m", "matemat", "/etc/matemat.conf", "/matemat.docker.conf" ] +CMD [ "/run.sh" ] diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..ca8c643 --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +export LD_PRELOAD=/usr/lib/libmagic.so.1 + +/usr/local/bin/python3 -m matemat /etc/matemat.conf /matemat.docker.conf