App Platform Dockerfile Builds


Getting Started

When defining a component, you may specify the dockerfile_path to instruct the build system to use your Dockerfile during the build process for your app.

If dockerfile_path is not provided, the build system will attempt to use Cloud Native Buildpacks to build your application.

name: sample-dockerfile
- name: web
    branch: main
  dockerfile_path: Dockerfile


  • App Platform treats /var/run as a special path and avoids extracting it from base Docker images. This may cause errors with some builds. To resolve, restore /var/run in the form that is expected by the base image. For example, with Alpine Linux base images: RUN test -e /var/run || ln -s /run /var/run