From 71ed181611356b7b80af344848707cff06154c95 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 30 May 2022 08:37:58 +1000 Subject: [PATCH] Change docker user (#3096) - Running under 'inventree' user means that the mounted volume cannot be accessed - Will need to return to this issue soon --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index cec2424621..9ce9b4e6ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -105,10 +105,9 @@ COPY docker/init.sh ${INVENTREE_MNG_DIR}/init.sh WORKDIR ${INVENTREE_MNG_DIR} # Drop to the inventree user for the production image -RUN adduser inventree -RUN chown -R inventree:inventree ${INVENTREE_HOME} - -USER inventree +#RUN adduser inventree +#RUN chown -R inventree:inventree ${INVENTREE_HOME} +#USER inventree # Install InvenTree packages RUN pip3 install --user --disable-pip-version-check -r ${INVENTREE_HOME}/requirements.txt