<commit_before>FROM debian:latest
MAINTAINER peerchemist <<EMAIL>> (@peerboxPPC)

ENV PPC_VERSION=0.5.4ppc
ENV PPC_SHA256 61d9de36f111c833afa491d4db2473985e126a26fd5f913db6663bdec88c1075
ENV GOSU_VERSION=1.9

## dependencies
RUN apt-get update -y \
  && apt-get install --no-install-recommends -y curl ca-certificates git-core build-essential libssl-dev libdb++-dev \
  libboost-program-options-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev

## gosu
RUN gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys <KEY>
RUN curl -o /usr/local/bin/gosu -fSL https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-$(dpkg --print-architecture) \
	&& curl -o /usr/local/bin/gosu.asc -fSL https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-$(dpkg --print-architecture).asc \
	&& gpg --verify /usr/local/bin/gosu.asc \
	&& rm /usr/local/bin/gosu.asc \
	&& chmod +x /usr/local/bin/gosu

## peercoin
RUN useradd -r sunny

RUN curl -SLO4 https://github.com/ppcoin/ppcoin/archive/v${PPC_VERSION}.tar.gz \
  && tar xf v${PPC_VERSION}.tar.gz \
  && echo "$PPC_SHA256 v${PPC_VERSION}.tar.gz" | sha256sum -c - \
  && cd ppcoin-${PPC_VERSION} \
  ## make ppcoind
  && make -f makefile.unix USE_UPNP= -e PIE=1 -C src \
  && install -Dm755 "src/ppcoind" "/usr/local/bin/"

## cleanup
RUN rm v${PPC_VERSION}.tar.gz && rm -r ppcoin-${PPC_VERSION}
RUN apt-get remove -y --purge curl ca-certificates git-core build-essential libssl-dev libdb++-dev \
  libboost-program-options-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENV PPC_DATA=/home/sunny/.ppcoin \
  PATH=/usr/local/bin/:$PATH

VOLUME ["/home/sunny/.ppcoin"]

## docker
COPY docker-entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

EXPOSE 9901 9902

CMD ["ppcoind"]<commit_msg>single RUN save a lot of space<commit_after>FROM debian:latest
MAINTAINER peerchemist <<EMAIL>>

ENV PPC_VERSION=0.5.4ppc
ENV PPC_SHA256 61d9de36f111c833afa491d4db2473985e126a26fd5f913db6663bdec88c1075
ENV GOSU_VERSION=1.9

# build
## dependencies
RUN apt-get update -y \
    && apt-get install --no-install-recommends -y curl ca-certificates build-essential libssl-dev libdb++-dev \
    libboost-program-options-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev \
    libboost-program-options1.55.0 libboost-filesystem1.55.0 libboost-system1.55.0 libboost-thread1.55.0 \
    ## gosu
    && gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys <KEY> \
    && curl -o /usr/local/bin/gosu -fSL https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-$(dpkg --print-architecture) \
    && curl -o /usr/local/bin/gosu.asc -fSL https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-$(dpkg --print-architecture).asc \
    && gpg --verify /usr/local/bin/gosu.asc \
    && rm /usr/local/bin/gosu.asc \
    && chmod +x /usr/local/bin/gosu \
    ## ppcoind
    && curl -SLO4 https://github.com/ppcoin/ppcoin/archive/v${PPC_VERSION}.tar.gz \
    && tar xf v${PPC_VERSION}.tar.gz \
    && echo "$PPC_SHA256 v${PPC_VERSION}.tar.gz" | sha256sum -c - \
    && cd ppcoin-${PPC_VERSION} \
    ## make ppcoind
    && make -f makefile.unix USE_UPNP= -e PIE=1 -C src \
    && install -Dm755 "src/ppcoind" "/usr/local/bin/" \
    ## cleanup
    && cd .. && rm v${PPC_VERSION}.tar.gz && rm -r ppcoin-${PPC_VERSION} \
    && apt-get remove -y --purge curl ca-certificates build-essential libssl-dev libdb++-dev \
    libboost-program-options-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev \
    && apt-get -y clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
    && useradd -r sunny

## container stuff
ENV PPC_DATA=/home/sunny/.ppcoin \
  PATH=/usr/local/bin/:$PATH
VOLUME ["/home/sunny/.ppcoin"]

COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

EXPOSE 9901 9902
CMD ["ppcoind"]
{'fraction_non_alphanumeric': 0.16443546350088406, 'fraction_numerical': 0.04041424602172266, 'mean_word_length': 3.3516483516483517, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5063342', 'n_tokens_mistral': 1663, 'n_tokens_neox': 1550, 'n_words': 280}