diff --git a/Dockerfile b/Dockerfile index 59679aa09128d40107c7f6add029386905d445cd..4a115569e4d4d9388f71d3074c86d33886f10cf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ FROM debian:buster -MAINTAINER Romain de Laage <romaindelaage@orange.fr> RUN apt-get update \ && apt-get -yq install build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev git \ @@ -10,15 +9,15 @@ COPY lufi.conf /lufi/lufi.conf WORKDIR /lufi -#INSTALLATION OF THE DEPENDENCIES RUN carton install --deployment --without=test --without=sqlite --without=mysql VOLUME /lufi/data /lufi/files -ADD a.out /boucle +ADD tini /tini + +RUN chmod +x /tini +ENTRYPOINT ["/tini", "--"] EXPOSE 8081 -#DEFAULT COMMAND EXECUTED AT EACH LAUNCH OF THE IMAGE -#CMD carton exec hypnotoad /lufi/script/lufi -CMD carton exec hypnotoad /lufi/script/lufi && /boucle +CMD ["carton", "exec", "hypnotoad", "-f", "/lufi/script/lufi"] diff --git a/a.out b/a.out deleted file mode 100755 index 10054391fe4143c9f555f9c046ac10d04ac014c8..0000000000000000000000000000000000000000 Binary files a/a.out and /dev/null differ diff --git a/main.c b/main.c deleted file mode 100644 index a5787929f97dae4ea93053e8ec9967ad9476aef5..0000000000000000000000000000000000000000 --- a/main.c +++ /dev/null @@ -1,8 +0,0 @@ -#include <stdio.h> - -int main(void){ - while(1){ - - } - return -1; -} diff --git a/tini b/tini new file mode 100644 index 0000000000000000000000000000000000000000..03af82f09e6484df819313cf9fec158d6b4a879d Binary files /dev/null and b/tini differ