DevSpace CLI lets you easily build Dockerfiles and define deployments for the Docker images created from such Dockerfiles. This will use the easy to use deployment method component. There are also other options how you can deploy your Dockerfile e.g. with kubernetes manifests or a helm chart
Add deployments for existing Dockerfiles
Run one of the following commands to add a custom component to your deployments defined in
devspace.yaml based on an existing Dockerfile:
devspace add deployment [deployment-name] --dockerfile="" devspace add deployment [deployment-name] --dockerfile="" --image="my-registry.tld/[username]/[image]"
The difference between the first command and the second one is that the second one specifically defines where the Docker image should be pushed to after building the Dockerfile. In the first command, DevSpace CLI would assume that you want to use the DevSpace Container Registry provided by DevSpace Cloud.
If you are using a private Docker registry, make sure to login to this registry.
After adding a new deployment, you need to manually redeploy in order to start the newly added component together with the remainder of your previouly existing deployments.