2019-04-28 15:57:41 +00:00
|
|
|
FROM alpine:latest as builder
|
2019-03-12 02:54:01 +00:00
|
|
|
|
2019-04-28 15:57:41 +00:00
|
|
|
RUN apk update && \
|
|
|
|
apk add build-base cmake git libcap-dev curl ninja bash binutils-gold
|
2019-03-12 02:54:01 +00:00
|
|
|
|
|
|
|
WORKDIR /src/
|
|
|
|
COPY . /src/
|
|
|
|
|
2019-04-28 15:57:41 +00:00
|
|
|
RUN make NINJA=ninja STATIC_LINK=ON BUILD_TYPE=Release
|
2019-04-24 02:10:21 +00:00
|
|
|
RUN ./lokinet-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
|
|
|
|
COPY --from=builder /src/build/lokinet .
|
|
|
|
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
|