diff --git a/Dockerfile b/Dockerfile index c1363b6..6256b94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,8 @@ FROM golang:1.21-alpine WORKDIR /app RUN apk update && \ - apk add openssl && \ - openssl s_client -connect helloworld.letsencrypt.org:443 -showcerts /dev/null | sed -e '/-----BEGIN/,/-----END/!d' | tee "/usr/local/share/ca-certificates/ca.crt" >/dev/null && \ - update-ca-certificates + apk add curl bash ca-certificates && \ + update-ca-certificates COPY . ./ RUN go mod download && \ diff --git a/docker-images/pandoc/Dockerfile b/docker-images/pandoc/Dockerfile new file mode 100644 index 0000000..ddb23d1 --- /dev/null +++ b/docker-images/pandoc/Dockerfile @@ -0,0 +1,9 @@ +ARG TAG=main +ARG DOCKER_REPOSITORY=local +FROM ${DOCKER_REPOSITORY}/scyllaridae:${TAG} AS scyllaridae +FROM pandoc/latex:3.1.1 AS pandoc + +WORKDIR /app +COPY --from=scyllaridae /app/scyllaridae /app/scyllaridae +COPY scyllaridae.yml . +ENTRYPOINT ["/app/scyllaridae"] diff --git a/docker-images/pandoc/scyllaridae.yml b/docker-images/pandoc/scyllaridae.yml new file mode 100644 index 0000000..21cf4de --- /dev/null +++ b/docker-images/pandoc/scyllaridae.yml @@ -0,0 +1,12 @@ +destinationHttpMethod: PUT +allowedMimeTypes: + - "application/vnd.openxmlformats-officedocument.wordprocessingml.document" + - "application/xml" +cmdByMimeType: + default: + cmd: /usr/local/bin/pandoc + args: + - "-f" + - "docx" + - "-t" + - "pdf"