diff --git a/Dockerfile b/Dockerfile index a4857b7..de76e06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM docker/compose:alpine-1.25.5 MAINTAINER Team Lixo -RUN apk add gnupg curl git py-pip && pip install netcalc +RUN apk add gnupg curl git py-pip openssh && pip install netcalc RUN curl -L "https://github.com/gliderlabs/sigil/releases/download/v0.5.0/sigil_0.5.0_$(uname -sm|tr \ _).tgz" | tar -zxC /usr/local/bin VOLUME /etc/lixonet @@ -10,4 +10,5 @@ WORKDIR /run ADD . . RUN chmod +x run.sh +USER lixonet CMD ["./run.sh"] diff --git a/install.sh b/install.sh index cc8a2b2..f356dc0 100644 --- a/install.sh +++ b/install.sh @@ -1,3 +1,3 @@ #!/bin/ash -docker build -t lixonet-ee . && docker run --restart always -d -e GIT_URL=https://$1:$2@github.com/Manevolent/lixonet-ee.git -v /var/run/docker.sock:/var/run/docker.sock -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet lixonet-ee \ No newline at end of file +docker build -t lixonet-ee . && docker run --restart always -d -e GIT_URL=git@github.com:Manevolent/lixonet-ee.git -v /var/run/docker.sock:/var/run/docker.sock -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet -v /root/.ssh/id_rsa:/home/lixonet/.ssh/id_rsa lixonet-ee \ No newline at end of file