From 935bd5120ff56dbf34fd1681d6c4eb91f80afe7d Mon Sep 17 00:00:00 2001 From: 9SMTM6 <44668330+9SMTM6@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:22:54 +0100 Subject: [PATCH] fix docker build on btrfs (#255) --- docker/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 80bd0aa69..62e2f25ad 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,7 +14,15 @@ EXPOSE ${EXPOSED_PORT} ENV SPRING_PROFILES_ACTIVE docker COPY --from=builder application/dependencies/ ./ + +# fix for https://stackoverflow.com/questions/51115856/docker-failed-to-export-image-failed-to-create-image-failed-to-get-layer +# (only last copy caused issue) +# this seems to be triggered by using btrfs: +# https://github.com/moby/moby/issues/36573 +RUN true COPY --from=builder application/spring-boot-loader/ ./ +RUN true COPY --from=builder application/snapshot-dependencies/ ./ +RUN true COPY --from=builder application/application/ ./ ENTRYPOINT ["java", "org.springframework.boot.loader.launch.JarLauncher"]