Skip to content

Commit 6205d87

Browse files
committed
增加轻量化nginx构建
1 parent d8c1ff3 commit 6205d87

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ all: build
22

33
build:
44
@docker build --tag=eswork/nginx .
5+
lt:
6+
@docker build --tag=eswork/nginx:lt -f Dockerfile.lt .
57

68
release: build
79
@docker build --tag=eswork/nginx:$(shell cat VERSION) .
10+
release-lt: build
11+
@docker build --tag=eswork/nginx:$(shell cat VERSION)-lt -f Dockerfile.lt .

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
## Supported tags and respective `Dockerfile` links
55

6-
- [`latest` , `1.12.1` (1.12.1/Dockerfile)](https://github.com/EsWork/docker-nginx/blob/master/Dockerfile)
6+
- [`latest` , `1.12.1` (1.12.1/Dockerfile)](https://github.com/EsWork/docker-nginx/blob/master/Dockerfile)
7+
- [(1.12.1-lt/Dockerfile)](https://github.com/EsWork/docker-nginx/blob/master/Dockerfile.lt)
8+
9+
* eswork/nginx 参考Features
10+
* eswork/nginx:lt 轻量化模块
711

812
Features
913
---

rootfs/etc/nginx/test.lt.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ http{
106106
#deny all;
107107
}
108108

109-
location ~ /purge(/.*) {
110-
proxy_cache_purge cache_one $host$1$is_args$args;
111-
}
112-
113109
location / {
114110
proxy_pass http://demo;
115111
proxy_set_header Host $host;

0 commit comments

Comments
 (0)