Run generic containerized applications on Cerebrium using your own custom Dockerfiles.
EXPOSE
command - this port will be referenced later in your cerebrium.toml
configurationCMD
command is required to specify what runs when the container starts (typically your server process)WORKDIR
to ensure your application runs from the correct location (defaults to root directory if not specified)dockerfile_path
parameter:
port
: The port the server listens on.healthcheck_endpoint
: The endpoint used to confirm instance health. If unspecified, defaults to a TCP ping on the configured port. If the health check registers a non-200 response, it will be considered unhealthy, and be restarted should it not recover timely.readycheck_endpoint
: The endpoint used to confirm if the instance is ready to receive. If unspecified, defaults to a TCP ping on the configured port. If the ready check registers a non-200 response, it will not be a viable target for request routing.dockerfile_path
: The relative path to the Dockerfile used to build the app.CMD
clause, specifying the entrypoint
parameter in the cerebrium.toml
file is required.
dockerfile_path
, all dependencies and necessary commands
should be installed and executed within the Dockerfile. Dependencies listed
under cerebrium.dependencies.*
, as well as
cerebrium.deployment.shell_commands
and
cerebrium.deployment.pre_build_commands
, will be ignored.cerebrium.toml
file: