----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
npx serverize deploy
Description | |
---|---|
Usage | npx serverize deploy [options] |
Deploy an application using a Dockerfile or Docker Compose file
Tip
Arguments or options enclosed in
<>
are required, while those enclosed in[]
are optional.
Option | Description | Default |
---|---|---|
-f, --file [dockerfilepath] | Path to a Dockerfile relative to —cwd. ignored if —image is present | Dockerfile |
-i, --image [image] | Docker image to deploy. | |
--context [context] | Docker build context | . |
-o, --output-file <outputFile> | Write output to a file | |
--cwd [cwd] | Project directory | $(pwd) |
-c, --channel <channel> | Channel name (dev or preview) | dev |
-r, --release <release> | Release name | latest |
-p, --project-name <projectName> | The project name |