You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# DisableDockerDetector "liberty-maven-plugin does not support docker buildx-build. See https://github.com/OpenLiberty/ci.maven/issues/1589"# open liberty base imageFROM icr.io/appcafe/open-liberty:23.0.0.3-kernel-slim-java17-openj9-ubi
# Use the ARG instruction to define the VERBOSE build argumentARG VERBOSE=true
# Use the ENV instruction to define the VERBOSE environment variableENV VERBOSE=$VERBOSE
# Add configCOPY --chown=1001:0 liberty/wlp/usr/servers/defaultServer/server.xml /config/server.xml
# This script will add the requested XML snippets to enable Liberty features and grow image to be fit-for-purpose using featureUtility.# Only available in 'kernel-slim'. The 'full' tag already includes all features for convenience.RUN features.sh
# Add app and jdbc driverCOPY --chown=1001:0 javaee-cafe.war /config/apps/
COPY --chown=1001:0 liberty/wlp/usr/shared/resources/mssql-jdbc-8.2.2.jre8.jar /opt/ol/wlp/usr/shared/resources/
# This script will add the requested XML snippets, grow image to be fit-for-purpose and apply interim fixesRUN configure.sh
Consider this
Dockerfile
.The complete app from which this
Dockerfile
is taken is at https://github.com/azure-javaee/open-liberty-on-aks/blob/main/java-app/pom.xml . This app is the sample for this article: https://learn.microsoft.com/en-us/azure/aks/howto-deploy-java-liberty-app .I observe if I try to build the container image with Docker Desktop for macOS 14.3.1 on Apple Silicon with this command:
docker buildx build --platform linux/amd64 -t javaee-cafe:v1 --pull --file=Dockerfile .
I see this failed result.
The text was updated successfully, but these errors were encountered: