diff --git a/Dockerfile b/Dockerfile index 28219bb7..07333d56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ RUN mkdir /opt/recipes WORKDIR /opt/recipes COPY . ./ RUN chmod +x boot.sh setup.sh -RUN chmod 755 /opt/recipes/mediafiles RUN ln -s /opt/recipes/setup.sh /usr/local/bin/createsuperuser RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev zlib-dev jpeg-dev && \ diff --git a/boot.sh b/boot.sh index 0605d78d..f79975ed 100644 --- a/boot.sh +++ b/boot.sh @@ -6,4 +6,5 @@ python manage.py migrate python manage.py collectstatic --noinput echo "Done" +exec chmod 755 /opt/recipes/mediafiles exec gunicorn -b :8080 --access-logfile - --error-logfile - recipes.wsgi \ No newline at end of file