File tree Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,14 @@ FROM centos:7
2
2
3
3
LABEL maintainer=
"TeslaGov" email=
"[email protected] "
4
4
5
+ COPY resources/nginx.repo /etc/yum.repos.d/nginx.repo
6
+
5
7
ENV LD_LIBRARY_PATH=/usr/local/lib
6
8
7
9
RUN yum -y update && \
8
10
yum -y groupinstall 'Development Tools' && \
9
- yum -y install pcre-devel pcre zlib-devel openssl-devel wget cmake check-devel check
11
+ yum -y install pcre-devel pcre zlib-devel openssl-devel wget cmake check-devel check && \
12
+ yum -y install nginx-1.12.0
10
13
11
14
RUN mkdir -p /root/dl
12
15
WORKDIR /root/dl
@@ -47,4 +50,15 @@ RUN wget http://nginx.org/download/nginx-1.12.0.tar.gz && \
47
50
ln -sf nginx-1.12.0 nginx && \
48
51
cd /root/dl/nginx && \
49
52
./configure --with-compat --add-dynamic-module=../ngx-http-auth-jwt-module --with-cc-opt='-std=gnu99' && \
50
- make modules
53
+ make modules && \
54
+ cp /root/dl/nginx/objs/ngx_http_auth_jwt_module.so /etc/nginx/modules/.
55
+
56
+ # Get nginx ready to run
57
+ COPY resources/nginx.conf /etc/nginx/nginx.conf
58
+ COPY resources/test-jwt-nginx.conf /etc/nginx/conf.d/test-jwt-nginx.conf
59
+ RUN cp -r /usr/share/nginx/html /usr/share/nginx/secure
60
+
61
+ WORKDIR /etc/nginx
62
+ CMD ["nginx" ]
63
+
64
+ EXPOSE 8000
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments