From 3202158af1e2875162eaeb828a5fd78e7702b091 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Tue, 24 Jan 2023 14:35:43 +0100 Subject: [PATCH] fix(docker): missing config file in dev image (#14753) ## Changes Proposed: When we create the dev image we do not have the .dockerdist file under the etc folder. The ac-dev-server included in the azerothcore-wotlk repository bind the /env/docker/etc folder inside the container, but the acore-docker repository doesn't. That's why we are having the error in that project. This happened after the latest changes: * https://github.com/azerothcore/azerothcore-wotlk/pull/14707 * https://github.com/azerothcore/azerothcore-wotlk/pull/14747 Closes https://github.com/azerothcore/acore-docker/issues/12 --- apps/docker/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/docker/Dockerfile b/apps/docker/Dockerfile index a425f174c..a0b02e746 100644 --- a/apps/docker/Dockerfile +++ b/apps/docker/Dockerfile @@ -94,6 +94,11 @@ USER $DOCKER_USER # NOTE: this folder is different by the /azerothcore (which is binded instead) COPY --chown=$DOCKER_USER:$DOCKER_USER . /azerothcore +# Needed if we use the dev image without linking any external folder (e.g. acore-docker) +COPY --chown=$DOCKER_USER:$DOCKER_USER env/docker/etc/authserver.conf.dockerdist /azerothcore/env/dist/etc/authserver.conf.dockerdist +COPY --chown=$DOCKER_USER:$DOCKER_USER env/docker/etc/worldserver.conf.dockerdist /azerothcore/env/dist/etc/worldserver.conf.dockerdist +COPY --chown=$DOCKER_USER:$DOCKER_USER env/docker/etc/dbimport.conf.dockerdist /azerothcore/env/dist/etc/dbimport.conf.dockerdist + #================================================================ # # SERVICE BASE: prepare the OS for the production-ready services