Fix for permissions
This commit is contained in:
parent
8277bad474
commit
4ab2009720
@ -22,8 +22,12 @@ RUN pip install --upgrade pip && \
|
|||||||
COPY . $APP_HOME
|
COPY . $APP_HOME
|
||||||
|
|
||||||
RUN sed -i 's/\r$//g' $APP_HOME/entrypoint.sh && \
|
RUN sed -i 's/\r$//g' $APP_HOME/entrypoint.sh && \
|
||||||
|
chown -R app:app $APP_HOME && \
|
||||||
chmod +x $APP_HOME/entrypoint.sh && \
|
chmod +x $APP_HOME/entrypoint.sh && \
|
||||||
chown -R app:app $APP_HOME
|
chown root:root $APP_HOME/fix_permissions.sh && \
|
||||||
|
chmod +x $APP_HOME/fix_permissions.sh && \
|
||||||
|
chmod u+s $APP_HOME/fix_permissions.sh
|
||||||
|
|
||||||
|
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
python wait_for_db.py
|
python wait_for_db.py
|
||||||
#chown -R app:app $APP_HOME
|
#chown -R app:app $APP_HOME
|
||||||
chown app:app $APP_HOME/media
|
|
||||||
chown app:app $APP_HOME/static
|
|
||||||
python manage.py makemigrations
|
python manage.py makemigrations
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
python manage.py collectstatic --noinput
|
python manage.py collectstatic --noinput
|
||||||
|
|||||||
3
app/fix_permissions.sh
Normal file
3
app/fix_permissions.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
chown app:app $APP_HOME/media
|
||||||
|
chown app:app $APP_HOME/static
|
||||||
Loading…
Reference in New Issue
Block a user