Skip to content

Commit

Permalink
simplify Dockerfile with JDK 16
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelhg committed Apr 10, 2021
1 parent 13fd804 commit d2ea3b2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ RUN apk add --no-cache wget binutils \
--output /opt/customjre

FROM squidfunk/mkdocs-material:$MKDOCS_MATERIAL_VERSION
RUN apk add --no-cache fontconfig ttf-dejavu
ADD plantuml /usr/local/bin/plantuml
RUN pip install --no-cache-dir plantuml-markdown
COPY --from=BUILD /opt/customjre /opt/jre
COPY --from=BUILD /usr/local/lib/plantuml.jar /usr/local/lib/plantuml.jar
ENV PATH=/opt/jre/bin:$PATH

# https://github.com/AdoptOpenJDK/openjdk-docker/issues/75
RUN apk add --no-cache fontconfig ttf-dejavu
RUN ln -s /usr/lib/libfontconfig.so.1 /usr/lib/libfontconfig.so && \
ln -s /lib/libuuid.so.1 /usr/lib/libuuid.so.1 && \
ln -s /lib/libc.musl-x86_64.so.1 /usr/lib/libc.musl-x86_64.so.1
ENV LD_LIBRARY_PATH /usr/lib

CMD [ "build" ]

0 comments on commit d2ea3b2

Please sign in to comment.