diff --git a/Dockerfile b/Dockerfile index a81128d..9c07f99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ RUN mkdir /files/tmp WORKDIR /code ADD requirements.txt /code/ RUN pip install -r requirements.txt +RUN apt-get update && apt-get install -y sox lame libboost-program-options-dev libsox-fmt-mp3 ADD . /code/ RUN adduser --disabled-password --gecos '' djworker diff --git a/bin/sox b/bin/sox deleted file mode 100755 index 438a437..0000000 Binary files a/bin/sox and /dev/null differ diff --git a/bin/wav2png b/bin/wav2png new file mode 100755 index 0000000..3caced9 Binary files /dev/null and b/bin/wav2png differ diff --git a/dss/celeryconf.py b/dss/celeryconf.py index 2625d86..22abefa 100644 --- a/dss/celeryconf.py +++ b/dss/celeryconf.py @@ -5,7 +5,7 @@ import os from celery import Celery # set the default Django settings module for the 'celery' program. -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dss.settings') from django.conf import settings diff --git a/run_celery.sh b/run_celery.sh index 7199e4d..4af3a17 100755 --- a/run_celery.sh +++ b/run_celery.sh @@ -1,4 +1,2 @@ #!/bin/sh su -m djworker -c "sleep 3 && celery worker -A dss.celeryconf -Q default" -chown djworker /files -R -chown djworker /tmp/dss.log \ No newline at end of file