-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
20 lines (19 loc) · 989 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM alpine as iconv
COPY ./conf/docker/iconv.sh /
RUN sh /iconv.sh
FROM alpine
LABEL maintainer="dnomd343"
COPY . /var/www/echoIP
COPY --from=iconv /tmp/iconv/ /usr/local/lib/
RUN apk --update add --no-cache nginx curl nodejs redis php7 php7-fpm php7-gmp php7-json php7-iconv php7-redis php7-sqlite3 php7-openssl php7-mbstring && \
rm /usr/lib/php7/modules/iconv.so && ln -s /usr/local/lib/iconv.so /usr/lib/php7/modules/ && \
mv /usr/local/lib/libiconv.so /usr/local/lib/libiconv.so.2 && \
mkdir -p /run/nginx && touch /run/nginx/nginx.pid && \
echo "daemonize yes" >> /etc/redis.conf && \
cp /var/www/echoIP/conf/docker/init.sh / && \
cp /var/www/echoIP/conf/docker/ip.conf /etc/nginx/echoip.conf && \
cp -f /var/www/echoIP/conf/docker/nginx.conf /etc/nginx/nginx.conf && \
cp /var/www/echoIP/conf/docker/init.sh / && \
sed -i '$i\0\t0\t*\t*\t*\t/var/www/echoIP/backend/qqwryUpdate.sh' /var/spool/cron/crontabs/root
EXPOSE 1601
CMD ["sh","init.sh"]