moved permission fix to boot.sh
This commit is contained in:
@ -8,7 +8,6 @@ RUN mkdir /opt/recipes
|
|||||||
WORKDIR /opt/recipes
|
WORKDIR /opt/recipes
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN chmod +x boot.sh setup.sh
|
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 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 && \
|
RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev zlib-dev jpeg-dev && \
|
||||||
|
1
boot.sh
1
boot.sh
@ -6,4 +6,5 @@ python manage.py migrate
|
|||||||
python manage.py collectstatic --noinput
|
python manage.py collectstatic --noinput
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
|
exec chmod 755 /opt/recipes/mediafiles
|
||||||
exec gunicorn -b :8080 --access-logfile - --error-logfile - recipes.wsgi
|
exec gunicorn -b :8080 --access-logfile - --error-logfile - recipes.wsgi
|
Reference in New Issue
Block a user