-
Notifications
You must be signed in to change notification settings - Fork 36
/
Dockerfile
48 lines (40 loc) · 1.16 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
FROM alpine
MAINTAINER krish512 <[email protected]>
WORKDIR /var/www/html
RUN apk --update upgrade && apk update && apk add curl ca-certificates && update-ca-certificates --fresh && apk add openssl
RUN apk --update add \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
nginx \
gzip \
php7 \
php7-dom \
php7-ctype \
php7-curl \
php7-fpm \
php7-gd \
php7-intl \
php7-json \
php7-mbstring \
php7-mcrypt \
php7-mysqli \
php7-mysqlnd \
php7-opcache \
php7-pdo \
php7-pdo_mysql \
php7-posix \
php7-session \
php7-xml \
php7-iconv \
php7-phar \
php7-openssl \
php7-zlib \
php7-zip \
&& rm -rf /var/cache/apk/*
RUN wget -qO- https://download.revive-adserver.com/revive-adserver-4.2.1.tar.gz | tar xz --strip 1 \
&& chown -R nobody:nobody . \
&& rm -rf /var/cache/apk/*
COPY nginx/nginx.conf /etc/nginx/nginx.conf
RUN mkdir -p /run/nginx
EXPOSE 80
CMD php-fpm7 && nginx -g 'daemon off;'