forked from krish512/ReviveDockerImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (39 loc) · 1.14 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
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 \
&& rm -rf /var/cache/apk/*
RUN wget -qO- https://download.revive-adserver.com/revive-adserver-4.1.3.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;'