ARG BASE_TAG=latest
FROM registry.nspop.dk/platform/nsp:${BASE_TAG}

# Add empty luna module. It is requried for DRS to start. In production it will be replaced with
# real module by volume mount.
ENV JBOSS_HOME /pack/wildfly

# Copy the war file to the deployment directory
COPY target/sosigw.war /pack/wildfly/standalone/deployments/sosigw.war

# Fix for Error: Could not rename /opt/jboss/wildfly/standalone/configuration/standalone_xml_history/current
RUN rm -rf /pack/wildfly/standalone/configuration/standalone_xml_history