stratospheric-dev / stratospheric

All you need to know to get your Spring Boot application into production with AWS 🍃
https://stratospheric.dev
Apache License 2.0
262 stars 187 forks source link

Chapter 1: fix Dockerfile #109

Closed henriquemotaesteves closed 2 years ago

henriquemotaesteves commented 2 years ago

If you try to build the Docker image of chapter 1, the following warning/error is displayed and the image is not built:

When using COPY with more than one source file, the destination must be a directory and end with a /

rieckpil commented 2 years ago

Hey @henriquemotaesteves thanks for raising the PR. Did you fix it or was it something else as you immediately closed this issue?

henriquemotaesteves commented 2 years ago

Hi @rieckpil.

This PR fixed the problem in building the Docker image but it broke the execution of the application inside the container.

After thinking about the problem and a little research, I noticed that the Dockerfile was not guilty, but the Spring Boot that after version 2.5 started to generate two jar files in the output directory.

So, I decided to close this PR and open a new one (#110) with the correct fix to the problem.