diff --git a/services/api-db/Dockerfile b/services/api-db/Dockerfile index bec31d72d7..27465599d7 100644 --- a/services/api-db/Dockerfile +++ b/services/api-db/Dockerfile @@ -7,6 +7,11 @@ ENV LAGOON_VERSION=$LAGOON_VERSION USER root RUN apk add --no-cache openssh-keygen + +COPY ./docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ +RUN chown -R mysql /docker-entrypoint-initdb.d/ \ + && /bin/fix-permissions /docker-entrypoint-initdb.d/ + USER mysql ENV MARIADB_DATABASE=infrastructure \ @@ -15,6 +20,4 @@ ENV MARIADB_DATABASE=infrastructure \ MARIADB_CHARSET=utf8 \ MARIADB_COLLATION=utf8_general_ci -COPY ./docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ -RUN chown -R mysql /docker-entrypoint-initdb.d/; /bin/fix-permissions /docker-entrypoint-initdb.d/ COPY ./rerun_initdb.sh /rerun_initdb.sh