mirror of https://github.com/dnomd343/echoIP
Dnomd343
4 years ago
5 changed files with 30 additions and 35 deletions
@ -1,13 +1,8 @@ |
|||
FROM debian |
|||
COPY . /root |
|||
FROM alpine |
|||
COPY . /var/www/echoIP |
|||
ADD ./conf/docker/init.sh / |
|||
RUN mkdir -p /var/www/echoIP \ |
|||
&& mv /root/* /var/www/echoIP/ \ |
|||
&& apt update \ |
|||
&& apt install -y nginx curl \ |
|||
&& 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 |
|||
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 / |
|||
CMD ["sh","init.sh"] |
|||
|
@ -1,4 +1,4 @@ |
|||
service php7.3-fpm start |
|||
service nginx start |
|||
/usr/sbin/php-fpm7 |
|||
/usr/sbin/nginx |
|||
node /var/www/echoIP/backend/qqwryFormat/server.js |
|||
/bin/bash |
|||
/bin/sh |
|||
|
Loading…
Reference in new issue