Skip to content

Commit

Permalink
Copy startup file
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Jan 28, 2025
1 parent 7577825 commit d8d172e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions app/compose/production/app_postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ ADD app/ ${APP_ROOT}
COPY ./app/djangoq_setup.sh /djangoq_setup.sh
RUN chmod +x /djangoq_setup.sh

COPY ./app/compose/production/app_postgres/start /start
#RUN sed -i 's/\r$//g' /start
RUN chmod +x /start

RUN adduser appuser --system --no-create-home --shell /bin/sh \
&& chown -R appuser ${APP_ROOT}
USER appuser


RUN chown appuser /start
RUN chown appuser /djangoq_setup.sh
CMD ${STARTUP_COMMAND}
5 changes: 0 additions & 5 deletions app/compose/production/app_postgres/start
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/bin/bash

set -o errexit
set -o pipefail
set -o nounset

python /app/manage.py collectstatic --noinput
python /app/manage.py migrate
python /app/manage.py update_assettype
Expand Down

0 comments on commit d8d172e

Please sign in to comment.