diff --git a/.gitignore b/.gitignore index fa16c20d..5d181ca5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dist *.jar *.rpm *.gz +*.tgz diff --git a/docker-bake.hcl b/docker-bake.hcl index 0c0487c1..5a866351 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -334,7 +334,7 @@ target "tengine_libreoffice" { } variable "ALFRESCO_PDFRENDERER_USER_NAME" { - default = "libreoffice" + default = "pdfrenderer" } variable "ALFRESCO_PDFRENDERER_USER_ID" { @@ -342,7 +342,7 @@ variable "ALFRESCO_PDFRENDERER_USER_ID" { } target "tengine_pdfrenderer" { - dockerfile = "./tengine/libreoffice/Dockerfile" + dockerfile = "./tengine/pdfrenderer/Dockerfile" inherits = ["java_base"] contexts = { java_base = "target:java_base" diff --git a/tengine/pdfrenderer/Dockerfile b/tengine/pdfrenderer/Dockerfile index c315d646..be522275 100644 --- a/tengine/pdfrenderer/Dockerfile +++ b/tengine/pdfrenderer/Dockerfile @@ -17,7 +17,7 @@ RUN --mount=type=bind,source=${PDFRENDERER_COMMON_PATH},target=/dist \ ADD ${PDFRENDERER_COMMON_PATH}/alfresco-transform-pdf-renderer*.jar /opt/app.jar RUN groupadd -g ${ALFRESCO_PDFRENDERER_GROUP_ID} ${ALFRESCO_PDFRENDERER_GROUP_NAME} && \ - useradd ${ALFRESCO_PDFRENDERER_USER_ID} -g ${ALFRESCO_PDFRENDERER_GROUP_NAME} ${ALFRESCO_PDFRENDERER_USER_NAME} && \ + useradd -u ${ALFRESCO_PDFRENDERER_USER_ID} -g ${ALFRESCO_PDFRENDERER_GROUP_NAME} ${ALFRESCO_PDFRENDERER_USER_NAME} && \ chgrp ${ALFRESCO_PDFRENDERER_GROUP_NAME} /opt/app.jar USER ${ALFRESCO_PDFRENDERER_USER_NAME}