Skip to content

Commit

Permalink
Merge pull request #6645 from hotosm/build/bind-mounts
Browse files Browse the repository at this point in the history
Add PYTHONPATH and bind mount for migrations
  • Loading branch information
dakotabenjamin authored Nov 25, 2024
2 parents 1f35f84 + b95e861 commit 505acfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONFAULTHANDLER=1 \
PATH="/home/appuser/.local/bin:$PATH" \
PYTHONPATH="/usr/src/app:$PYTHONPATH" \
PYTHON_LIB="/home/appuser/.local/lib/python$PYTHON_IMG_TAG/site-packages" \
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \
REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ services:
- ./pyproject.toml:/usr/src/app/pyproject.toml:ro
- ./backend:/usr/src/app/backend:ro
- ./tests:/usr/src/app/tests:ro
- ./migrations:/src/migrations
restart: unless-stopped
healthcheck:
test: curl --fail http://localhost:5000 || exit 1
Expand Down

0 comments on commit 505acfa

Please sign in to comment.