Build the App Docker Image
Before You BeginDocker or Docker Desktop must be installed on your machine.
- Procedure
- Build a Linux executable by clicking the shortcut menu and selecting Build app. Select the
Linux/amd64
option. - Provide execute permission to the app executable:
chmod +x <app-executable
- Create a Docker file in the directory containing the Flogo app executable and add the following commands to the Docker file.
FROM <FLOGO_RUNTIME_IMAGE>:<TAG>
ADD <FLOGO_APP_EXECUTABLE_NAME> flogoappFor example:
FROM alpine:3.8
Run the docker build command:
RUN apk add --no-cache ca-certificates
WORKDIR /app
ADD <FLOGO_APP_EXECUTABLE_NAME> /app/flogoapp
ENTRYPOINT ["/app/flogoapp"]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.