Skip to content

Commit

Permalink
Add MEDIA_ROOT, STATIC_ROOT and DEFAULT_ROOT to env vars in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-misuk-valor authored and domdinicola committed Feb 28, 2025
1 parent c922f35 commit 6e44b38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ ENV PATH=/code/.venv/bin:/usr/local/bin/:/usr/bin:/bin \
PYTHONPATH="" \
PYTHONDBUFFERED=1 \
PYTHONDONTWRITEBYTCODE=1
MEDIA_ROOT="${MEDIA_ROOT:-/var/run/app/media}"
STATIC_ROOT="${STATIC_ROOT:-/var/run/app/static}"
DEFAULT_ROOT="${DEFAULT_ROOT:-/var/run/app/default}"

RUN <<EOF cat> /RELEASE
{"version": "$VERSION",
Expand Down
3 changes: 0 additions & 3 deletions docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/sh

export MEDIA_ROOT="${MEDIA_ROOT:-/var/run/app/media}"
export STATIC_ROOT="${STATIC_ROOT:-/var/run/app/static}"
export DEFAULT_ROOT="${DEFAULT_ROOT:-/var/run/app/default}"
export DEEPFACE_HOME="${DEEPFACE_HOME:-/var/run/app/deepface}"
export UWSGI_PROCESSES="${UWSGI_PROCESSES:-"4"}"
export DJANGO_SETTINGS_MODULE="${DJANGO_SETTINGS_MODULE:-"hope_dedup_engine.config.settings"}"
Expand Down

0 comments on commit 6e44b38

Please sign in to comment.