File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1
1
FROM debian:buster-slim
2
2
3
+ ARG NGINX_PKG_TYPE=full
4
+ ENV NGINX_PKG=nginx-${NGINX_PKG_TYPE:-full}
5
+
3
6
RUN apt-get update \
4
- && apt-get install -y nginx \
7
+ && apt-get install -y $NGINX_PKG \
5
8
&& rm -rf /var/lib/apt/lists/* \
6
9
&& rm /var/log/nginx/access.log \
7
10
&& rm /var/log/nginx/error.log \
Original file line number Diff line number Diff line change
1
+ version : ' 3.3'
2
+
3
+ services :
4
+ nginx-full :
5
+ image : jfahrer/nginx:stretch-full
6
+ build :
7
+ context : .
8
+ args :
9
+ - NGINX_PKG_TYPE=full
10
+
11
+ nginx-light :
12
+ image : jfahrer/nginx:stretch-light
13
+ build :
14
+ context : .
15
+ args :
16
+ - NGINX_PKG_TYPE=light
17
+
18
+ nginx-extras :
19
+ image : jfahrer/nginx:stretch-extras
20
+ build :
21
+ context : .
22
+ args :
23
+ - NGINX_PKG_TYPE=extras
You can’t perform that action at this time.
0 commit comments