You can preserve your container’s configuration by building it as an image.
-
Build your custom Liferay DXP image by running
./gradlew buildDockerImage
A
Dockerfile
is generated for your container when building your image. TheDockerfile
is generated in your workspace’sbuild/docker
folder. For more information on how to configure theDockerfile
, see Docker’s Dockerfile reference documentation.You can generate a
Dockerfile
manually at any time by running./gradlew createDockerfile
-
Run
docker image ls
to verify the image’s availability.
You can now build Liferay DXP Docker images in Liferay Workspace!