diff --git a/build/Dockerfile b/build/Dockerfile index 88786e1..2f5b961 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -158,14 +158,14 @@ CMD ["/root/init.sh"] # FROM base as full_jeedom ARG JEEDOM_REPO +ARG JEEDOM_VERSION # localhost didn't work for mysql, should try 127.0.0.1 ENV MYSQL_HOST=localhost # add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added -RUN groupadd -r mysql && useradd -r -g mysql mysql - -RUN mkdir -p '/var/run/mysqld' && \ - chown www-data:mysql '/var/run/mysqld' && \ +RUN groupadd -r mysql && useradd -r -g mysql mysql && \ + mkdir -p '/var/run/mysqld' && \ + usermod -a -G mysql www-data && \ chmod 774 '/var/run/mysqld' RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -q -y \