1
0
mirror of https://github.com/PurpleI2P/pyseeder synced 2025-01-15 17:29:58 +00:00
pyseeder/contrib/docker/Dockerfile

29 lines
904 B
Docker
Raw Normal View History

2017-07-04 18:06:53 -04:00
FROM alpine:latest
LABEL authors "Darknet Villain <supervillain@riseup.net>"
ENV PYSEEDER_HOME="/home/pyseeder"
ENV DATA_DIR="${PYSEEDER_HOME}/data"
RUN mkdir -p "$PYSEEDER_HOME" "$DATA_DIR" "$DATA_DIR"/data "$DATA_DIR"/output \
&& adduser -S -h "$PYSEEDER_HOME" pyseeder \
&& chown -R pyseeder:nobody "$PYSEEDER_HOME" \
&& chmod -R 700 "$DATA_DIR"
RUN apk --no-cache add python3 py3-pip build-base git openssl-dev musl-dev python3-dev libffi-dev \
&& pip3 install --no-cache-dir https://github.com/PurpleI2P/pyseeder/zipball/master \
&& apk --purge del python3 py3-pip build-base git openssl-dev musl-dev python3-dev libffi-dev
# 2. Adding required libraries to run i2pd to ensure it will run.
RUN apk --no-cache add python3 openssl
VOLUME "$DATA_DIR"
USER pyseeder
COPY entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh
EXPOSE 8443
ENTRYPOINT [ "/entrypoint.sh" ]