-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (46 loc) · 940 Bytes
/
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
50
FROM lsiobase/nginx:3.10
# set version label
ARG BUILD_DATE
ARG VERSION
ARG TT_RSS_VERSION
LABEL build_version="version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="Reedcrif"
RUN \
echo "**** install packages ****" && \
apk add --no-cache --upgrade \
curl \
git \
grep \
php7-apcu \
php7-curl \
php7-dom \
php7-gd \
php7-iconv \
php7-intl \
php7-ldap \
php7-mcrypt \
php7-mysqli \
php7-mysqlnd \
php7-pcntl \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pgsql \
php7-posix \
tar && \
echo "**** install software ****" && \
mkdir -p \
/var/www/html/ && \
curl -o \
/tmp/ttrss.tar.gz -L \
"https://git.tt-rss.org/git/tt-rss/archive/master.tar.gz" && \
tar xf \
/tmp/ttrss.tar.gz -C \
/var/www/html/ --strip-components=1 && \
echo "**** link php7 to php ****" && \
ln -sf /usr/bin/php7 /usr/bin/php && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
VOLUME /config
# Exposed ports
EXPOSE 80 443