Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions content/en/docs/deployment/docker-deploy/docker-pad.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <your-image-name>:<tag> -f build/docker/Dockerfile`, where:
4. Build the Docker image by using the following command: `docker build -t <your-image-name>:<tag> -f build/docker/Dockerfile`, where:

* `<your-image-name>` and `<tag>` - 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.
Expand Down