add router docker file

This commit is contained in:
Ryan Tharp 2019-03-11 19:54:01 -07:00
parent e2989c9ea4
commit b525272f24
1 changed files with 18 additions and 0 deletions

18
docker/router.Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM ubuntu:latest
RUN apt update && \
apt install -y build-essential cmake git libcap-dev curl ninja-build
WORKDIR /src/
COPY . /src/
# 12p/24l cores takes 8gb
ARG BIG_AND_FAST="false"
RUN if [ "false$BIG_AND_FAST" = "false" ] ; then make ; else make NINJA=ninja ; fi
RUN find . -name lokinet
RUN ./lokinet -g -f
RUN ./lokinet-bootstrap http://206.81.100.174/n-st-1.signed
CMD ["./lokinet"]
EXPOSE 1090/udp