Skip to content

Commit

Permalink
Merge pull request #3107 from cweider/docker-chores
Browse files Browse the repository at this point in the history
chore(build): use www-data user for all services
  • Loading branch information
mlissner authored Sep 5, 2023
2 parents 99d103b + 6da3966 commit 99311e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,15 @@ CMD celery \
#freelawproject/courtlistener:latest-web-dev
FROM python-base as web-dev

USER www-data
CMD python /opt/courtlistener/manage.py migrate && \
python /opt/courtlistener/manage.py createcachetable && \
python /opt/courtlistener/manage.py runserver 0.0.0.0:8000

#freelawproject/courtlistener:latest-web-prod
FROM python-base as web-prod

USER www-data
CMD gunicorn cl.asgi:application \
--chdir /opt/courtlistener/ \
--user www-data \
Expand Down

0 comments on commit 99311e9

Please sign in to comment.