FerryDocs

Your own Dockerfile

A Dockerfile at the root always wins over the detection.

Edit on GitHub
Dockerfilepackage.jsonFerryImage

The root has a Dockerfile and a package.json.

1 / 3

A at the root always wins over the detection. Ferry builds the from it.

A Dockerfile in a different place

Terminal
ferry up api --dockerfile docker/Dockerfile --follow

The path of --dockerfile is relative to the . This flag also changes an auto service to Docker builds.

What changes with a Dockerfile

SettingWith your Dockerfile
Port--port, a PORT variable, or the one port that the image exposes (EXPOSE). If there is none: 10000.
It replaces the command of the image. Ferry runs it as /bin/sh -c "<command>".
Build command, publish directoryThey do not apply. The Dockerfile does the build.

On this page