mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 08:48:54 +00:00
refactor: isolate build
This commit is contained in:
parent
4137d8460e
commit
df081c20a4
@ -19,15 +19,19 @@ USER root
|
|||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
fonts-noto-cjk \
|
fonts-noto-cjk \
|
||||||
curl \
|
libgd3 \
|
||||||
build-essential \
|
|
||||||
&& \
|
&& \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
/generate-jetty-start.sh
|
/generate-jetty-start.sh
|
||||||
|
|
||||||
ARG GRAPHVIZ_VERSION=7.1.0
|
ARG GRAPHVIZ_VERSION=7.1.0
|
||||||
ARG GRAPHVIZ_BUILD_DIR=/tmp/graphiz-build
|
ARG GRAPHVIZ_BUILD_DIR=/tmp/graphiz-build
|
||||||
RUN mkdir -p $GRAPHVIZ_BUILD_DIR && \
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
curl \
|
||||||
|
build-essential \
|
||||||
|
&& \
|
||||||
|
mkdir -p $GRAPHVIZ_BUILD_DIR && \
|
||||||
cd $GRAPHVIZ_BUILD_DIR && \
|
cd $GRAPHVIZ_BUILD_DIR && \
|
||||||
curl -o graphviz.tar.gz https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/${GRAPHVIZ_VERSION}/graphviz-${GRAPHVIZ_VERSION}.tar.gz && \
|
curl -o graphviz.tar.gz https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/${GRAPHVIZ_VERSION}/graphviz-${GRAPHVIZ_VERSION}.tar.gz && \
|
||||||
tar -xzf graphviz.tar.gz && \
|
tar -xzf graphviz.tar.gz && \
|
||||||
@ -36,6 +40,7 @@ RUN mkdir -p $GRAPHVIZ_BUILD_DIR && \
|
|||||||
make && \
|
make && \
|
||||||
make install && \
|
make install && \
|
||||||
apt-get remove -y curl build-essential && \
|
apt-get remove -y curl build-essential && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf $GRAPHVIZ_BUILD_DIR
|
rm -rf $GRAPHVIZ_BUILD_DIR
|
||||||
|
|
||||||
RUN dot -V
|
RUN dot -V
|
||||||
|
Loading…
Reference in New Issue
Block a user