GuidesLanguage guides
Your own Dockerfile
A Dockerfile at the root always wins over the detection.
The root has a Dockerfile and a package.json.
1 / 3
A Dockerfile at the root always wins over the detection. Ferry builds the image from it.
A Dockerfile in a different place
ferry up api --dockerfile docker/Dockerfile --followThe path of --dockerfile is relative to the root directory. This flag also changes an auto service to Docker builds.
What changes with a Dockerfile
| Setting | With your Dockerfile |
|---|---|
| Port | --port, a PORT variable, or the one port that the image exposes (EXPOSE). If there is none: 10000. |
| Start command | It replaces the command of the image. Ferry runs it as /bin/sh -c "<command>". |
| Build command, publish directory | They do not apply. The Dockerfile does the build. |