Skip to content

Commit

Permalink
fix docker build on btrfs (spring-petclinic#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
9SMTM6 authored Mar 4, 2024
1 parent 39f6670 commit 935bd51
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 935bd51

Please sign in to comment.