File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
# debian
2
2
FROM debian:bullseye-slim
3
3
4
- # 环境变量
4
+ ARG NGINX_VERSION=1.26.2
5
+
5
6
ENV TZ "Asia/Shanghai"
6
7
7
8
# conf
@@ -32,7 +33,7 @@ RUN set -x \
32
33
&& git clone -b V1.1.28 https://github.com/happyfish100/libserverframe.git --depth 1 \
33
34
&& git clone -b V6.09 https://github.com/happyfish100/fastdfs.git --depth 1 \
34
35
&& git clone -b V1.23 https://github.com/happyfish100/fastdfs-nginx-module.git --depth 1 \
35
- && wget https://nginx.org/download/nginx-1.26.2 .tar.gz
36
+ && wget https://nginx.org/download/nginx-$NGINX_VERSION .tar.gz
36
37
# build libfastcommon / libserverframe / fastdfs
37
38
RUN set -x \
38
39
&& mkdir /home/dfs \
@@ -44,8 +45,8 @@ RUN set -x \
44
45
&& cd /usr/local/src/fastdfs \
45
46
&& ./make.sh && ./make.sh install \
46
47
&& cd /usr/local/src \
47
- && tar -zxvf nginx-1.22.1 .tar.gz \
48
- && cd /usr/local/src/nginx-1.22.1 \
48
+ && tar -zxvf nginx-$NGINX_VERSION .tar.gz \
49
+ && cd /usr/local/src/nginx-$NGINX_VERSION \
49
50
&& ./configure --add-module=/usr/local/src/fastdfs-nginx-module/src \
50
51
&& make && make install \
51
52
&& chmod +x /home/fastdfs.sh
Original file line number Diff line number Diff line change 1
1
#基础镜像
2
2
FROM alpine:3.20
3
3
4
- #环境变量
4
+ ARG NGINX_VERSION=1.26.2
5
+
5
6
ENV TZ "Asia/Shanghai"
6
7
7
8
# conf
@@ -21,7 +22,7 @@ RUN set -x \
21
22
&& git clone -b V1.1.28 https://github.com/happyfish100/libserverframe.git --depth 1 \
22
23
&& git clone -b V6.09 https://github.com/happyfish100/fastdfs.git --depth 1 \
23
24
&& git clone -b V1.23 https://github.com/happyfish100/fastdfs-nginx-module.git --depth 1 \
24
- && wget https://nginx.org/download/nginx-1.26.2 .tar.gz
25
+ && wget https://nginx.org/download/nginx-$NGINX_VERSION .tar.gz
25
26
# build libfastcommon / libserverframe / fastdfs
26
27
RUN set -x \
27
28
&& mkdir /home/dfs \
@@ -33,8 +34,8 @@ RUN set -x \
33
34
&& cd /usr/local/src/fastdfs \
34
35
&& ./make.sh && ./make.sh install \
35
36
&& cd /usr/local/src \
36
- && tar -zxvf nginx-1.22.1 .tar.gz \
37
- && cd /usr/local/src/nginx-1.22.1 \
37
+ && tar -zxvf nginx-$NGINX_VERSION .tar.gz \
38
+ && cd /usr/local/src/nginx-$NGINX_VERSION \
38
39
&& ./configure --add-module=/usr/local/src/fastdfs-nginx-module/src \
39
40
&& make && make install \
40
41
&& apk del .build-deps \
You can’t perform that action at this time.
0 commit comments