1
0
Fork 0
forked from s3lph/matemat

Wrapped command for running matemat in the staging container in a shell script

This commit is contained in:
s3lph 2018-07-20 11:38:16 +02:00
parent eb4504a7ea
commit fd7ff59137
2 changed files with 6 additions and 1 deletions

View file

@ -7,4 +7,4 @@ ADD . /
RUN pip3 install -r /requirements.txt RUN pip3 install -r /requirements.txt
EXPOSE 80/tcp EXPOSE 80/tcp
CMD [ "/usr/local/bin/python3", "-m", "matemat", "/etc/matemat.conf", "/matemat.docker.conf" ] CMD [ "/run.sh" ]

5
run.sh Executable file
View file

@ -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