Skip to content

Commit f92623d

Browse files
committed
删除没有必要的包
1 parent 03c8581 commit f92623d

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

Dockerfile

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,19 @@ ARG RESTY_CONFIG_OPTIONS_MORE=""
7878
ARG RESTY_LUAJIT_OPTIONS="--with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT'"
7979
ARG RESTY_PCRE_OPTIONS="--with-pcre-jit"
8080

81-
ARG RESTY_ADD_PACKAGE_BUILDDEPS=""
82-
ARG RESTY_ADD_PACKAGE_RUNDEPS=""
81+
ARG RESTY_ADD_PACKAGE_BUILDDEPS="git \
82+
autoconf \
83+
automake \
84+
libtool \
85+
python3 \
86+
libsodium-dev \
87+
libmodsecurity-dev \
88+
libcurl4-openssl-dev \
89+
wget \
90+
gnupg2 \
91+
ca-certificates"
92+
ARG RESTY_ADD_PACKAGE_RUNDEPS="libmodsecurity3 \
93+
libsodium23"
8394
ARG RESTY_EVAL_PRE_CONFIGURE=""
8495
ARG RESTY_EVAL_POST_DOWNLOAD_PRE_CONFIGURE=""
8596
ARG RESTY_EVAL_POST_MAKE=""
@@ -131,21 +142,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \
131142
unzip \
132143
wget \
133144
zlib1g-dev \
134-
git \
135-
autoconf \
136-
automake \
137-
libtool \
138-
python3 \
139-
libsodium-dev \
140-
libsodium23 \
141-
libmodsecurity3 \
142-
libmodsecurity-dev \
143-
libcurl4-openssl-dev \
144145
${RESTY_ADD_PACKAGE_BUILDDEPS} \
145146
${RESTY_ADD_PACKAGE_RUNDEPS} \
146-
wget \
147-
gnupg2 \
148-
ca-certificates \
149147
&& wget -O /tmp/nginx-module-vts-0.2.4.zip https://github.com/vozlt/nginx-module-vts/archive/refs/tags/v0.2.4.zip \
150148
&& wget -O /tmp/ngx_waf-v10.1.2.zip https://github.com/ADD-SP/ngx_waf/archive/refs/tags/v10.1.2.zip \
151149
&& unzip /tmp/nginx-module-vts-0.2.4.zip -d /usr/local/src/ \

0 commit comments

Comments
 (0)