xrechnung XML validator service image based on kosit
2.8K
1.6.1) with XRechnung 3.0.2 (2026-01-31)This Docker image is not affiliated with or officially supported by the maintainers of the KoSIT validator. Use at your own expertise/risk.
1.6.1)2026-01-31)No files were changed. For further/in-depth information visit the according kosit repository.
This is a docker image for the kosit XML-validator java service/application, running daemon-mode and providing the service via http. The image also includes the configuration for the german XRechnung.
Port forwarding via Docker Desktop or docker run -p 8081:8081 image:tag
Example for verbose curl query:
curl -v -i --location POST 'http://localhost:8081' --header 'Content-Type: application/xml' --data-binary "@<acme-xrechnung>.xml"
github-repository for this image: https://github.com/flexness/xrechnung-validator-docker/
version with tag :02-26 and :latest
# //////////// Build stage ////////////
FROM eclipse-temurin:11-jre-alpine AS builder
WORKDIR /app
# Copy only necessary files
COPY validator-1.6.1-standalone.jar scenarios.xml EN16931-CII-validation.xsl EN16931-UBL-validation.xsl /app/
COPY resources /app/resources
# //////////// Final runtime stage ////////////
FROM eclipse-temurin:11-jre-alpine AS runtime
# Create a non-root user for security
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
# Set working directory
WORKDIR /app
# Copy built app from builder stage
COPY --from=builder /app /app
# Set permissions (just in case)
RUN chown -R appuser:appgroup /app
# Switch to non-root user
USER appuser
# Expose only required port
EXPOSE 8081
# Healthcheck (optional but recommended)
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s CMD wget -qO- http://localhost:8081 || exit 1
# Run the app
CMD ["java", "-jar", "validator-1.6.1-standalone.jar", "-s", "scenarios.xml", "-r", "/app", "-D", "-H", "0.0.0.0", "-P", "8081", "--disable-gui"]
Content type
Image
Digest
sha256:3e694bb44…
Size
79.6 MB
Last updated
8 months ago
docker pull flx235/xr-validator-service