2019-08-05 09:33:23 +00:00
|
|
|
ARG bootstrap="https://i2p.rocks/i2procks.signed"
|
2019-07-01 09:33:03 +00:00
|
|
|
FROM alpine:edge as builder
|
2019-03-12 02:54:01 +00:00
|
|
|
|
2019-04-28 15:57:41 +00:00
|
|
|
RUN apk update && \
|
2019-12-10 13:52:46 +00:00
|
|
|
apk add build-base cmake git libcap-dev libcap-static libuv-dev libuv-static curl ninja bash binutils-gold curl-dev
|
2019-03-12 02:54:01 +00:00
|
|
|
|
|
|
|
WORKDIR /src/
|
|
|
|
COPY . /src/
|
|
|
|
|
2020-02-07 04:17:36 +00:00
|
|
|
RUN make NINJA=ninja STATIC_LINK=ON BUILD_TYPE=Release DOWNLOAD_SODIUM=ON
|
2019-08-05 09:33:23 +00:00
|
|
|
RUN ./lokinet-bootstrap ${bootstrap}
|
2019-03-12 02:54:01 +00:00
|
|
|
|
2019-04-28 15:57:41 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
COPY lokinet-docker.ini /root/.lokinet/lokinet.ini
|
2019-10-06 20:51:19 +00:00
|
|
|
COPY --from=builder /src/build/daemon/lokinet .
|
2019-04-28 15:57:41 +00:00
|
|
|
COPY --from=builder /root/.lokinet/bootstrap.signed /root/.lokinet/
|
|
|
|
|
2019-03-12 02:54:01 +00:00
|
|
|
CMD ["./lokinet"]
|
2019-04-24 02:10:21 +00:00
|
|
|
EXPOSE 1090/udp 1190/tcp
|