Having docker related files in a sub directory #3715
Unanswered
pascal-mueller
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Take a look at the For example, do do the above {
"type": "docker-build",
"label": "docker-build",
"dockerBuild": {
"tag": "my_app:latest",
"dockerfile": "${workspaceFolder}/deployment/SomeDockerfile",
"context": "${workspaceFolder}"
}
}, When you right-click > Build that Dockerfile, we look into |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Assume
/
is my project root. Assume I put all my Dockerfiles and docker-compose files in/deployment
. So if I wanted to build an image, I'd do:or something similar. Please note the
.
which tells Docker the context. Now I'd like to just rightclick the Dockerfile and/or use ctrl+shit+p to build the image.Similar issue with docker compose. E.g. you also want to provide a
.env
file.I was wondering, how you all solved this because I can't be the only one who does this, no?
Beta Was this translation helpful? Give feedback.
All reactions