File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ RUN set -ex \
13
13
&& apt-get update \
14
14
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev curl pkg-config \
15
15
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
16
+ && mkdir -p /usr/src/unit \
17
+ && cd /usr/src/unit \
16
18
&& hg clone -u @@VERSION@@-@@PATCHLEVEL@@ https://hg.nginx.org/unit \
17
19
&& cd unit \
18
20
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
@@ -52,7 +54,7 @@ RUN set -ex \
52
54
&& ./configure @@CONFIGURE@@ \
53
55
&& make -j $NCPU @@INSTALL@@ \
54
56
&& cd \
55
- && rm -rf unit \
57
+ && rm -rf /usr/src/ unit \
56
58
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
57
59
ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\( [^:]\+\) :.*$/\1 /' | sort | uniq >> /requirements.apt; \
58
60
done \
You can’t perform that action at this time.
0 commit comments