Browse Source

update: auto renew the database of qqwry.dat

master
Dnomd343 4 years ago
parent
commit
c369e7833f
  1. 3
      Dockerfile
  2. 1
      conf/docker/init.sh

3
Dockerfile

@ -4,5 +4,6 @@ ADD ./conf/docker/init.sh /
RUN apk --update add --no-cache nginx curl nodejs php7 php7-fpm php7-json php7-iconv php7-sqlite3 php7-openssl && \
mkdir /run/nginx && touch /run/nginx/nginx.pid && \
cp /var/www/echoIP/conf/nginx/docker.conf /etc/nginx/conf.d && \
cp /var/www/echoIP/conf/docker/init.sh /
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
CMD ["sh","init.sh"]

1
conf/docker/init.sh

@ -1,4 +1,5 @@
/usr/sbin/php-fpm7
/usr/sbin/nginx
/usr/sbin/crond
node /var/www/echoIP/backend/qqwryFormat/server.js
/bin/sh

Loading…
Cancel
Save