Build the App Docker Image

Before You BeginDocker or Docker Desktop must be installed on your machine.
    Procedure
  1. Build a Linux executable by clicking the shortcut menu and selecting Build app. Select the Linux/amd64 option.
  2. Provide execute permission to the app executable:
    chmod +x <app-executable
  3. Create a Docker file in the directory containing the Flogo app executable and add the following commands to the Docker file.
  4. FROM <FLOGO_RUNTIME_IMAGE>:<TAG>
    ADD <FLOGO_APP_EXECUTABLE_NAME> flogoapp

    For example:

    FROM alpine:3.8
    RUN apk add --no-cache ca-certificates
    WORKDIR /app
    ADD <FLOGO_APP_EXECUTABLE_NAME> /app/flogoapp
    ENTRYPOINT ["/app/flogoapp"]
     Run the docker build command:
     docker build -t <APP_IMAGE_NAME>:<TAG> -f <path-to-Dockerfile> .

    The app tag must be of the format <app-name>:<app-version>.

    ResultThe Docker image for the app is built.