Closed fabstao closed 4 years ago
Hi @fabstao,
I should have a look at the .dockerignore file. The file has the following content by default.
*
!target/*-runner
!target/*-runner.jar
!target/lib/*
As you can see, all files are ignored (i.e. pom file) except the artifacts. Hence, you have to adjust the rules according to your needs (e.g. add !pom.xml
).
Oh got it, now it's working, thanks a lot!
Describe the bug Can't build docker native image with the application, can't even copy pom.xml to the build image (quay.io/quarkus/centos-quarkus-maven:19.3.1-java11) it looks like an issue with the image because I can copy files into my own Docker images, even based on CentOS.
Expected behavior Build application into docker container image
Actual behavior Docker build fails in first stage
To Reproduce Steps to reproduce the behavior:
Configuration
Screenshots (If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
orver
:java -version
:mvnw --version
orgradlew --version
):Additional context
Please help