From b72b70fff7ce5749b72bcea02cffbf8cd9d474c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Serrador?= <61971372+mruiserrmendix@users.noreply.github.com> Date: Wed, 13 May 2026 08:42:15 +0200 Subject: [PATCH] Enhance Dockerfile instructions and explanations Added explanations for Dockerfile commands and clarified the image build process. --- .../deployment/docker-deploy/docker-pad.md | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/content/en/docs/deployment/docker-deploy/docker-pad.md b/content/en/docs/deployment/docker-deploy/docker-pad.md index 8b64bcaaa6c..66229c21919 100644 --- a/content/en/docs/deployment/docker-deploy/docker-pad.md +++ b/content/en/docs/deployment/docker-deploy/docker-pad.md @@ -94,9 +94,25 @@ To build a Docker image from the Portable Package, perform the following steps: CMD ["./bin/start", "etc/Default"] ``` - You must create this Dockerfile yourself and place it alongside the application files generated by the Portable App Distribution. The `COPY` commands in the example above assume that the `app`, `bin`, `etc`, and `lib` directories are in the same location as your Dockerfile. + Explanation: + + FROM eclipse-temurin:21-jdk – Starts from an JAVA base image, as the Portable Package contains all necessary dependencies. + + COPY . /app – Copies the contents of the Portable Package to the /app directory in the image. + + WORKDIR /mendix – Sets the working directory to /app. + + EXPOSE 8080 – Exposes port 8080 for the Mendix Runtime. + + EXPOSE 8090 – Exposes port 8090 for the Mendix Runtime admin interface. + + CMD ["./bin/start", "etc/Default"] – Sets the start script to the Mendix Runtime execute. + + You must create this Dockerfile yourself and place it alongside the application files generated by the Portable App Distribution. The `COPY` commands in the example above assume that the `app`, `bin`, `etc`, and `lib` directories are in the same location as your Dockerfile. + + -3. Build the Docker image by using the following command: `docker build -t : -f build/docker/Dockerfile`, where: +4. Build the Docker image by using the following command: `docker build -t : -f build/docker/Dockerfile`, where: * `` and `` - Indicate your required image name and version tag (for example, my-mendix-app:1.0.0). * `-f build/docker/Dockerfile` - Specifies the path to your Dockerfile.