Skip to content

Commit 75499a2

Browse files
committed
consolidate into one docker file
consolidate into one docker file
1 parent b6439b3 commit 75499a2

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

Dockerfile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ FROM centos:7
22

33
LABEL maintainer="TeslaGov" email="[email protected]"
44

5+
COPY resources/nginx.repo /etc/yum.repos.d/nginx.repo
6+
57
ENV LD_LIBRARY_PATH=/usr/local/lib
68

79
RUN yum -y update && \
810
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
1013

1114
RUN mkdir -p /root/dl
1215
WORKDIR /root/dl
@@ -47,4 +50,15 @@ RUN wget http://nginx.org/download/nginx-1.12.0.tar.gz && \
4750
ln -sf nginx-1.12.0 nginx && \
4851
cd /root/dl/nginx && \
4952
./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

test/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)