-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
49 lines (41 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM fooinha/nginx-modsecurity:build
MAINTAINER fooinha <fooinha@gmail.com>
ARG MAINTANER_NAME=fooinha
ARG MAINTANER_EMAIL=fooinha@gmail.com
ENV MODSECURITY_INC ${PREFIX}/include
ENV MODSECURITY_LIB ${PREFIX}/lib
RUN apt-get remove -y \
autoconf \
automake \
apt-utils \
bison \
build-essential \
devscripts \
dh-autoreconf \
doxygen \
flex \
g++ \
git-core \
libtool \
make \
pkg-config \
apache2-dev \
libcurl4-gnutls-dev \
libgeoip-dev \
liblmdb-dev \
libpcre++-dev \
libxml2-dev \
libyajl-dev \
zlib1g-dev
RUN apt-get -y autoremove
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing \
libgeoip1 \
liblmdb0 \
libyajl2 \
libxml2
RUN rm -rf /build
COPY conf.tar.gz /opt/spider
WORKDIR /opt/spider
RUN tar zxvf conf.tar.gz
EXPOSE 80
CMD ["/opt/spider/sbin/nginx"]