From 6409d0198d1ddeb227171ed4319bdfdcb058ab60 Mon Sep 17 00:00:00 2001 From: RhiobeT Date: Tue, 25 May 2021 20:52:45 +0200 Subject: [PATCH] Add ImageMagick and Im4java --- pom.xml | 18 +++++++++++++----- src/main/docker/Dockerfile.native | 22 +++++----------------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/pom.xml b/pom.xml index 3891b5a..5418ab5 100644 --- a/pom.xml +++ b/pom.xml @@ -46,6 +46,16 @@ io.quarkus quarkus-config-yaml + + org.openimaj + core-image + 1.3.10 + + + org.im4java + im4java + 1.4.0 + io.quarkus @@ -84,11 +94,9 @@ native - - - native - - + + native + diff --git a/src/main/docker/Dockerfile.native b/src/main/docker/Dockerfile.native index 134c138..c412464 100644 --- a/src/main/docker/Dockerfile.native +++ b/src/main/docker/Dockerfile.native @@ -1,21 +1,9 @@ -#### -# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode -# -# Before building the docker image run: -# -# mvn package -Pnative -Dquarkus.native.container-build=true -# -# Then, build the image with: -# -# docker build -f src/main/docker/Dockerfile.native -t quarkus/lalafin . -# -# Then run the container using: -# -# docker run -i --rm -p 8080:8080 quarkus/lalafin -# -### -FROM registry.access.redhat.com/ubi8/ubi-minimal:latest +FROM archlinux:latest WORKDIR /work/ + +RUN pacman -Syu --noconfirm +RUN pacman -S --noconfirm imagemagick + COPY target/*-runner /work/application RUN chmod 775 /work