Building a Custom Docker Image

You can preserve your container’s configuration by building it as an image.

  1. Build your custom Liferay DXP image by running

    ./gradlew buildDockerImage
    

    A Dockerfile is generated for your container when building your image. The Dockerfile is generated in your workspace’s build/docker folder. For more information on how to configure the Dockerfile, see Docker’s Dockerfile reference documentation.

    You can generate a Dockerfile manually at any time by running

    ./gradlew createDockerfile
    
  2. Run docker image ls to verify the image’s availability.

You can now build Liferay DXP Docker images in Liferay Workspace!

« Configuring a Docker ContainerUpdating Liferay Workspace »
Was this article helpful?
1 out of 1 found this helpful