mirror of https://github.com/dnomd343/echoIP
5 changed files with 30 additions and 35 deletions
@ -1,13 +1,8 @@ |
|||||
FROM debian |
FROM alpine |
||||
COPY . /root |
COPY . /var/www/echoIP |
||||
ADD ./conf/docker/init.sh / |
ADD ./conf/docker/init.sh / |
||||
RUN mkdir -p /var/www/echoIP \ |
RUN apk --update add --no-cache nginx curl nodejs php7 php7-fpm php7-json php7-iconv php7-sqlite3 php7-openssl && \ |
||||
&& mv /root/* /var/www/echoIP/ \ |
mkdir /run/nginx && touch /run/nginx/nginx.pid && \ |
||||
&& apt update \ |
cp /var/www/echoIP/conf/nginx/docker.conf /etc/nginx/conf.d && \ |
||||
&& apt install -y nginx curl \ |
cp /var/www/echoIP/conf/docker/init.sh / |
||||
&& apt install -y php7.3 php7.3-fpm php7.3-sqlite3 \ |
|
||||
&& apt install -y nodejs \ |
|
||||
&& apt clean \ |
|
||||
&& cp /var/www/echoIP/conf/nginx/docker.conf /etc/nginx/conf.d \ |
|
||||
&& chmod +x /init.sh |
|
||||
CMD ["sh","init.sh"] |
CMD ["sh","init.sh"] |
||||
|
@ -1,4 +1,4 @@ |
|||||
service php7.3-fpm start |
/usr/sbin/php-fpm7 |
||||
service nginx start |
/usr/sbin/nginx |
||||
node /var/www/echoIP/backend/qqwryFormat/server.js |
node /var/www/echoIP/backend/qqwryFormat/server.js |
||||
/bin/bash |
/bin/sh |
||||
|
Loading…
Reference in new issue