Browse Source

update: more architecture support

master v1.2
Dnomd343 3 years ago
parent
commit
40c8ca31b6
  1. 7
      Dockerfile
  2. 2
      backend/queryInfo.php
  3. 13
      conf/docker/nginx.conf

7
Dockerfile

@ -1,12 +1,13 @@
FROM alpine
LABEL version="1.1" \
LABEL version="1.2" \
maintainer="dnomd343" \
description="echo client IP details"
COPY . /var/www/echoIP
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 php7-mbstring && \
mkdir /run/nginx && touch /run/nginx/nginx.pid && \
cp /var/www/echoIP/conf/nginx/docker.conf /etc/nginx/conf.d && \
mkdir -p /run/nginx && touch /run/nginx/nginx.pid && \
cp /var/www/echoIP/conf/nginx/docker.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

2
backend/queryInfo.php

@ -235,5 +235,5 @@ function main() {
routeParam(); // 处理传入参数
}
$myVersion = 'v1.1';
$myVersion = 'v1.2';
main();

13
conf/docker/nginx.conf

@ -0,0 +1,13 @@
user nginx;
worker_processes auto;
pcre_jit on;
include /etc/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
include /etc/nginx/echoip.conf;
}
Loading…
Cancel
Save