You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: worker/Dockerfile
+17-15Lines changed: 17 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -6,39 +6,41 @@ ENV GRAPHVIZ_VERSION=8.0.1
6
6
ENV EXPAT_VERSION=2.5.0
7
7
ENV USE_CLOSURE=0
8
8
9
+
# Since bellow RUN commands use pipes set "pipefail"
10
+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
11
+
9
12
WORKDIR /home/build/deps
10
13
11
14
RUN EXPAT_SOURCE_URL="https://github.com/libexpat/libexpat/releases/download/R_$(echo ${EXPAT_VERSION} | tr . _)/expat-${EXPAT_VERSION}.tar.xz"; \
12
15
curl --fail --location "$EXPAT_SOURCE_URL" | tar -xJ
13
-
RUN mv expat-${EXPAT_VERSION} expat
14
-
WORKDIRexpat
15
-
RUN grep -q ${EXPAT_VERSION} expat_config.h
16
+
RUN mv expat-${EXPAT_VERSION} expat \
17
+
&& grep -q ${EXPAT_VERSION} expat/expat_config.h
18
+
WORKDIR /home/build/deps/expat
16
19
RUN emconfigure ./configure \
17
20
--disable-shared \
18
21
--prefix=/home/build \
19
22
--libdir=/home/build/lib \
20
-
CFLAGS="-Oz -w -flto" LDFLAGS="-Oz -s -flto"
21
-
RUN emmake make -j -C lib all install
22
-
WORKDIR..
23
+
CFLAGS="-Oz -w -flto" LDFLAGS="-Oz -s -flto" \
24
+
&& emmake make -j -C lib all install
25
+
WORKDIR/home/build/deps
23
26
24
27
RUN GRAPHVIZ_SOURCE_URL="https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/${GRAPHVIZ_VERSION}/graphviz-${GRAPHVIZ_VERSION}.tar.xz"; \
25
28
curl --fail --location "$GRAPHVIZ_SOURCE_URL" | tar -xJ
26
-
RUN mv "graphviz-${GRAPHVIZ_VERSION}" graphviz
27
-
WORKDIRgraphviz
28
-
RUN grep -q "${GRAPHVIZ_VERSION}" graphviz_version.h
0 commit comments