Skip to content
Merged
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
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BUILD_IMAGE=gradle:9-jdk21
ARG RUN_IMAGE=jeffersonlab/wildfly:2.2.0
ARG RUN_IMAGE=jeffersonlab/wildfly:3.0.1

################## Stage 0
FROM ${BUILD_IMAGE} AS builder
Expand All @@ -18,12 +18,15 @@ RUN cd /app && gradle build -x test --no-watch-fs $OPTIONAL_CERT_ARG
################## Stage 1
FROM ${RUN_IMAGE} AS runner
ARG CUSTOM_CRT_URL
COPY --from=builder /app/build/libs/* /opt/jboss/wildfly/standalone/deployments
COPY --from=builder /app/build/libs/* /opt/wildfly/current/standalone/deployments
USER root
RUN if [ -z "${CUSTOM_CRT_URL}" ] ; then echo "No custom cert needed"; else \
curl -sS -o /etc/pki/ca-trust/source/anchors/customcert.crt $CUSTOM_CRT_URL \
&& update-ca-trust \
&& keytool -import -alias custom -file /etc/pki/ca-trust/source/anchors/customcert.crt -cacerts -storepass changeit -noprompt \
; fi
USER jboss
; fi \
&& dnf install -y ImageMagick \
&& dnf clean all

USER dev
ENV MOGRIFY='/usr/bin/mogrify'