Skip to content

Commit 8ef3ba3

Browse files
committed
Fix deprecation WARN: LegacyKeyValueFormat: "ENV key=value" should be used #230
Signed-off-by: tdruez <[email protected]>
1 parent 3eb7c3f commit 8ef3ba3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
1616
ARG APP_UID=1000
1717
ARG APP_GID=1000
1818

19-
ENV APP_NAME dejacode
20-
ENV APP_USER app
21-
ENV APP_UID ${APP_UID}
22-
ENV APP_GID ${APP_GID}
23-
ENV APP_DIR /opt/$APP_NAME
24-
ENV VENV_LOCATION /opt/$APP_NAME/.venv
19+
ENV APP_NAME=dejacode
20+
ENV APP_USER=app
21+
ENV APP_UID=${APP_UID}
22+
ENV APP_GID=${APP_GID}
23+
ENV APP_DIR=/opt/$APP_NAME
24+
ENV VENV_LOCATION=/opt/$APP_NAME/.venv
2525

2626
# Force Python unbuffered stdout and stderr (they are flushed to terminal immediately)
27-
ENV PYTHONUNBUFFERED 1
27+
ENV PYTHONUNBUFFERED=1
2828
# Do not write Python .pyc files
29-
ENV PYTHONDONTWRITEBYTECODE 1
29+
ENV PYTHONDONTWRITEBYTECODE=1
3030
# Add the app dir in the Python path for entry points availability
31-
ENV PYTHONPATH $PYTHONPATH:$APP_DIR
31+
ENV PYTHONPATH=$PYTHONPATH:$APP_DIR
3232

3333
# OS requirements
3434
RUN apt-get update \
@@ -59,7 +59,7 @@ RUN mkdir -p /var/$APP_NAME/static/ /var/$APP_NAME/media/
5959
# Create the virtualenv
6060
RUN python -m venv $VENV_LOCATION
6161
# Enable the virtualenv, similar effect as "source activate"
62-
ENV PATH $VENV_LOCATION/bin:$PATH
62+
ENV PATH=$VENV_LOCATION/bin:$PATH
6363

6464
# Install the dependencies before the codebase COPY for proper Docker layer caching
6565
COPY --chown=$APP_USER:$APP_USER setup.cfg setup.py $APP_DIR/

0 commit comments

Comments
 (0)