diff --git a/docker-images/pandoc/Dockerfile b/docker-images/pandoc/Dockerfile new file mode 100644 index 0000000..dca3509 --- /dev/null +++ b/docker-images/pandoc/Dockerfile @@ -0,0 +1,8 @@ +ARG TAG=main +ARG DOCKER_REPOSITORY=local +FROM ${DOCKER_REPOSITORY}/scyllaridae:${TAG} AS scyllaridae + +FROM pandoc/minimal:3.1.1 +WORKDIR /app +COPY --from=scyllaridae /app/scyllaridae . +COPY scyllaridae.yml . diff --git a/docker-images/pandoc/scyllaridae.yml b/docker-images/pandoc/scyllaridae.yml new file mode 100644 index 0000000..c19ba2d --- /dev/null +++ b/docker-images/pandoc/scyllaridae.yml @@ -0,0 +1,13 @@ +destinationHttpMethod: PUT +allowedMimeTypes: [ + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", +] +cmdByMimeType: + "application/vnd.openxmlformats-officedocument.wordprocessingml.document": + cmd: /usr/local/bin/pandoc + args: [ + "-f" + "docx" + "-t" + "pdf" + ]