Files
Peya/Dockerfile
t1amak 84b1a2177b
Some checks failed
ci/gh-actions/depends / Cross-Mac aarch64 (push) Failing after 7m53s
ci/gh-actions/depends / ARM v8 (push) Failing after 38m55s
ci/gh-actions/depends / ARM v7 (push) Failing after 16m2s
ci/gh-actions/depends / i686 Linux (push) Failing after 19m56s
ci/gh-actions/depends / i686 Win (push) Failing after 26m54s
ci/gh-actions/depends / RISCV 64bit (push) Failing after 20m7s
ci/gh-actions/depends / x86_64 Freebsd (push) Has been cancelled
ci/gh-actions/depends / x86_64 Linux (push) Has been cancelled
ci/gh-actions/depends / Win64 (push) Has been cancelled
ci/gh-actions/depends / Cross-Mac x86_64 (push) Has been cancelled
Update release tooling for Peya binaries
2026-03-18 21:47:42 +01:00

66 lines
1.5 KiB
Docker

# Multistage docker build, requires docker 17.05
# builder stage
FROM ubuntu:20.04 as builder
RUN set -ex && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends --yes install \
automake \
autotools-dev \
bsdmainutils \
build-essential \
ca-certificates \
ccache \
cmake \
curl \
git \
libtool \
pkg-config \
gperf
WORKDIR /src
COPY . .
ARG NPROC
RUN set -ex && \
git submodule init && git submodule update && \
rm -rf build && \
if [ -z "$NPROC" ] ; \
then make -j$(nproc) depends target=x86_64-linux-gnu ; \
else make -j$NPROC depends target=x86_64-linux-gnu ; \
fi
# runtime stage
FROM ubuntu:20.04
RUN set -ex && \
apt-get update && \
apt-get --no-install-recommends --yes install ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt
COPY --from=builder /src/build/x86_64-linux-gnu/release/bin /usr/local/bin/
# Create peya user
RUN adduser --system --group --disabled-password peya && \
mkdir -p /wallet /home/peya/.peya && \
chown -R peya:peya /home/peya/.peya && \
chown -R peya:peya /wallet
# Contains the blockchain
VOLUME /home/peya/.peya
# Generate your wallet via accessing the container and run:
# cd /wallet
# peya-wallet-cli
VOLUME /wallet
EXPOSE 17749
EXPOSE 17750
# switch to user peya
USER peya
ENTRYPOINT ["peyad"]
CMD ["--p2p-bind-ip=0.0.0.0", "--p2p-bind-port=17749", "--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=17750", "--non-interactive", "--confirm-external-bind"]