From 144fdbe66f46f1c4c00022bcf0cbcc9da9bed1dc Mon Sep 17 00:00:00 2001 From: hfroger Date: Wed, 6 Mar 2024 12:04:51 +0000 Subject: [PATCH] fix: duplicate migration files in Dockerfile (#68) Avoid duplicated migration file, by removing the migration files present in the base docker image. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8bdf20a..4667c42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,8 @@ RUN apt-get update -yq \ && bundle config set with "production" \ && bundle config set no_cache "true" \ && bundle config set deployment "false" \ - && rm -rf vendor Gemfile.lock + && rm -rf vendor Gemfile.lock \ + && rm -rf db/migrate/* COPY ./contrib/01_mautic_entrypoint /usr/local/share/docker-entrypoint.d/01_mautic_entrypoint COPY --chown=decidim:decidim ./contrib/nginx/nginx.conf /etc/nginx/nginx.conf