diff --git a/Dockerfile b/Dockerfile index 3c76052..dadbc4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,15 @@ FROM danog/madelineproto:latest -WORKDIR /app -ADD src /app -ADD composer.json /app -ADD server.php /app -ADD db.php /app -ADD entrypoint.sh / - RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ php composer-setup.php && \ php -r "unlink('composer-setup.php');" && \ mv composer.phar /usr/local/bin/composer && \ \ - apk add procps git unzip github-cli openssh && \ - composer update + apk add procps git unzip github-cli openssh -ENTRYPOINT ["/entrypoint.sh"] +RUN git clone https://github.com/danog/telerpc /app + +WORKDIR /app + +ENTRYPOINT ["/app/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 6e6f951..184cf9e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh +git pull + composer update php server.php server \ No newline at end of file