You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
i2p/Dockerfile-binary

39 lines
1.2 KiB

FROM alpine:latest
LABEL author="Konrad Baechler <konrad@diva.exchange>" \
maintainer="Konrad Baechler <konrad@diva.exchange>" \
name="diva-i2p" \
description="Distributed digital value exchange upholding security, reliability and privacy" \
url="https://diva.exchange"
COPY conf/ /home/i2pd/conf/
COPY network/ /home/i2pd/network/
COPY certificates/ /home/i2pd/data/certificates/
COPY entrypoint.sh /
COPY bin/i2pd /home/i2pd/bin/i2pd
# install deps && build i2p binary
RUN mkdir -p /home/i2pd/data/addressbook \
&& mkdir /home/i2pd/tunnels.null \
&& mkdir /home/i2pd/tunnels.source.conf.d \
&& mkdir /home/i2pd/tunnels.conf.d \
# i2p runtime dependencies
&& apk --no-cache add \
boost-filesystem \
boost-system \
boost-program_options \
boost-date_time \
openssl \
musl-utils \
libstdc++ \
sed \
&& cp /home/i2pd/conf/addresses-initial.org.csv /home/i2pd/data/addressbook/addresses.csv \
&& addgroup -g 1000 i2pd \
&& adduser -u 1000 -G i2pd -s /bin/sh -h "/home/i2pd" -D i2pd \
&& chown -R i2pd:i2pd /home/i2pd \
&& chmod 0700 /home/i2pd/bin/i2pd \
&& chmod +x /entrypoint.sh
VOLUME [ "/home/i2pd/data/" ]
WORKDIR "/home/i2pd/"
ENTRYPOINT ["/entrypoint.sh"]