@@ -21,15 +21,15 @@ ENV PYTHONUNBUFFERED=${PYTHONUNBUFFERED} \
2121 PYTHONDONTWRITEBYTECODE=${PYTHONDONTWRITEBYTECODE} \
2222 HOME=/home/${USER} \
2323 USER=${USER} \
24- PATH="/home/ ${USER}/.local/bin:$PATH" \
24+ PATH="/${USER}/.local/bin:$PATH" \
2525 # update env for local pip installs
2626 # see https://docs.python.org/3/using/cmdline.html#envvar-PYTHONUSERBASE
2727 # since all `pip install` commands are in the context of $USER
2828 # $PYTHONUSERBASE is the location used by default
29- PYTHONUSERBASE="/home/ ${USER}/.local" \
30- # where to store the pip cache (use the default)
29+ PYTHONUSERBASE="/${USER}/.local" \
30+ # where to store the pip cache
3131 # https://pip.pypa.io/en/stable/cli/pip/#cmdoption-cache-dir
32- PIP_CACHE_DIR="/home/ ${USER}/.cache/pip" \
32+ PIP_CACHE_DIR="/${USER}/.cache/pip" \
3333 GUNICORN_CONF="/$USER/run/gunicorn.conf.py"
3434
3535EXPOSE 8000
@@ -43,7 +43,7 @@ RUN --mount=type=cache,id=apt-archives,sharing=locked,target=/var/cache/apt/arch
4343 # pip cache dir must be created and owned by the user to work with BuildKit cache
4444 mkdir -p ${PIP_CACHE_DIR} && \
4545 # own the parent directory of PIP_CACHE_DIR
46- chown -R ${USER}:${USER} /home/ ${USER}/.cache && \
46+ chown -R ${USER}:${USER} /${USER}/.cache && \
4747 # setup $USER permissions for nginx
4848 mkdir -p /var/cache/nginx && \
4949 chown -R $USER:$USER /var/cache/nginx && \
0 commit comments