Comments (2)
<contextDirectory>docker</contextDirectory>
tells the plugin to send only that directory to docker for the build, it is the context that the build operates in. If you want to refer to things from target/
in your Dockerfile then you should probably have the Dockerfile as a file in the top-level of your project, so that your whole project is the build context.
from dockerfile-maven.
That answers my issue - thank you.
from dockerfile-maven.
Related Issues (20)
- Failed to execute goal com.spotify:docker-maven-plugin:1.1.1:push (push-image) on project HOT 7
- Caused by: com.spotify.docker.client.exceptions.DockerException: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.FileNotFoundException: \\.\pipe\docker_engine (The system cannot find the specified file) HOT 2
- idea开发环境下 ,用dockerfile-maven插件把springboot项目 打包成docker镜像超超超慢,什么原因 HOT 1
- Spring boot project no main manifest attribute HOT 1
- [BUG] -Ddockerfile.skip=yes not working HOT 1
- java.lang.ExceptionInInitializerError when deploying a bar file to ESB HOT 1
- Very slow HOT 3
- Cannot run program "docker-credential-gcloud": CreateProcess error=2, 系统找不到指定的文件。 HOT 1
- dockerHostUri didn't work HOT 3
- raspberry pi mvn dockerfile:build fail HOT 6
- How to building Docker Image in Maven Project of multi-module HOT 2
- Cannot push to ECR HOT 2
- Incompatibility with podman-docker HOT 2
- GCloud Credential Helper on Windows doesn't work out-of-the-box HOT 2
- dockerfile-maven-plugin tries to decrypt passwords given as property in settings.xml HOT 1
- Java Virtual machine say Error:Invalid or corupt file HOT 2
- cacheFrom does not work HOT 2
- ImageRef.parseRegistryUrl:112 HOT 1
- [Question] How to push the docker image with different tags to multiple registries when deploying HOT 1
- Plugin fails to run on Apple silicon (M1, M1 Pro, M1 Max) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerfile-maven.