Skip to content

Commit 98f7b9f

Browse files
add env variables to Dockerfile
1 parent 908f3df commit 98f7b9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ ENV PATH=/venv/bin:/usr/local/bin/:/usr/bin:/bin \
131131
PGSSLCERT="/tmp/postgresql.crt" \
132132
UV_PROJECT_ENVIRONMENT=/venv \
133133
VIRTUAL_ENV=/venv \
134-
UWSGI_PROCESSES=4
134+
UWSGI_PROCESSES=4 \
135+
MEDIA_ROOT="${MEDIA_ROOT:-/var/run/app/media}" \
136+
STATIC_ROOT="${STATIC_ROOT:-/var/run/app/static}"
135137

136138
RUN <<EOF cat> /RELEASE
137139
{"version": "$VERSION",

docker/bin/docker-entrypoint.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/sh -e
22

33

4-
export MEDIA_ROOT="${MEDIA_ROOT:-/var/run/app/media}"
5-
export STATIC_ROOT="${STATIC_ROOT:-/var/run/app/static}"
64
export UWSGI_PROCESSES="${UWSGI_PROCESSES:-"4"}"
75
export DJANGO_SETTINGS_MODULE="country_workspace.config.settings"
86
mkdir -p "${MEDIA_ROOT}" "${STATIC_ROOT}" || echo "Cannot create dirs ${MEDIA_ROOT} ${STATIC_ROOT}"

0 commit comments

Comments
 (0)