Skip to content

Commit

Permalink
Explicitelly set version of added gems
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeag committed Jul 2, 2024
1 parent 19577a3 commit 2730fd1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ ARG kramdown_asciidoc_version=2.1.0
ARG asciidoctor_bibtex_version=0.9.0
ARG asciidoctor_kroki_version=0.10.0
ARG asciidoctor_reducer_version=1.0.2
ARG barby_version=0.6.8
ARG rqrcode_version=2.2.0
ARG chunky_png_version=1.4.0

ENV ASCIIDOCTOR_CONFLUENCE_VERSION=${asciidoctor_confluence_version} \
ASCIIDOCTOR_DIAGRAM_VERSION=${asciidoctor_diagram_version} \
Expand All @@ -106,7 +109,10 @@ ENV ASCIIDOCTOR_CONFLUENCE_VERSION=${asciidoctor_confluence_version} \
KRAMDOWN_ASCIIDOC_VERSION=${kramdown_asciidoc_version} \
ASCIIDOCTOR_BIBTEX_VERSION=${asciidoctor_bibtex_version} \
ASCIIDOCTOR_KROKI_VERSION=${asciidoctor_kroki_version} \
ASCIIDOCTOR_REDUCER_VERSION=${asciidoctor_reducer_version}
ASCIIDOCTOR_REDUCER_VERSION=${asciidoctor_reducer_version} \
BARBY_VERSION=${barby_version} \
RQRCODE_VERSION=${rqrcode_version} \
CHUNKY_PNG_VERSION=${chunky_png_version}

## Always use the latest dependencies versions available for the current Alpine distribution
# hadolint ignore=DL3018,DL3028
Expand Down Expand Up @@ -135,9 +141,9 @@ RUN apk add --no-cache --virtual .rubymakedepends \
"asciidoctor-bibtex:${ASCIIDOCTOR_BIBTEX_VERSION}" \
"asciidoctor-kroki:${ASCIIDOCTOR_KROKI_VERSION}" \
"asciidoctor-reducer:${ASCIIDOCTOR_REDUCER_VERSION}" \
barby \
rqrcode \
chunky_png \
"barby:${BARBY_VERSION}" \
"rqrcode:${RQRCODE_VERSION}" \
"chunky_png:${CHUNKY_PNG_VERSION}" \
&& apk del -r --no-cache .rubymakedepends \
# Fixes an issue with 2 nokogiri versions breaking asciidoctor-epub3 on arm64
&& if [[ ${TARGETARCH} == arm64 ]]; then gem uninstall nokogiri -v '1.16.0'; fi
Expand Down

0 comments on commit 2730fd1

Please sign in to comment.