1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-21 04:43:16 +00:00
This commit is contained in:
2025-09-23 16:09:29 +02:00
parent 33048ee9a2
commit 39d6767ac5
6 changed files with 773 additions and 52 deletions
+5 -3
View File
@@ -2,7 +2,7 @@
FROM golang:1.23-alpine AS builder
# Instalar dependencias necesarias
RUN apk add --no-cache git openjdk17
RUN apk add --no-cache git openjdk17 curl
# Establecer directorio de trabajo
WORKDIR /app/src
@@ -21,8 +21,10 @@ RUN go mod init xslt-playground && \
# Build extension functions jar
WORKDIR /app/ext
COPY ext/ .
RUN javac com/xsltplayground/ext/CustomFunctions.java && \
jar cf custom-functions.jar com/xsltplayground/ext/CustomFunctions.class
RUN mkdir -p /tmp/saxon && \
curl -L -o /tmp/saxon/saxon-he.jar https://repo1.maven.org/maven2/net/sf/saxon/Saxon-HE/11.6/Saxon-HE-11.6.jar && \
javac -cp /tmp/saxon/saxon-he.jar com/xsltplayground/ext/CustomFunctions.java com/xsltplayground/Runner.java && \
jar cf custom-functions.jar com
WORKDIR /app/src