Files
pezkuwi-sdk/docker/dockerfiles/pezkuwi/pezkuwi_builder.Dockerfile
T
pezkuwichain a0f04820ab fix: Complete rebrand fixes for dockerfiles, scripts, and service files
- Update all Dockerfile references from polkadot to pezkuwi
- Fix package names in scripts (pezpallet-*, pezframe-*)
- Update GitHub repository URLs to pezkuwichain/pezkuwi-sdk
- Fix template Dockerfiles (minimal, solochain, teyrchain)
- Update service file paths and binary names
- Fix path references from bizinikiwi/frame/ to bizinikiwi/pezframe/
2025-12-23 09:37:11 +03:00

38 lines
1.4 KiB
Docker

# This is the build stage for Pezkuwi. Here we create the binary in a temporary image.
FROM docker.io/paritytech/ci-unified:bullseye-1.88.0-2025-06-27-v202507112050 as builder
WORKDIR /pezkuwi
COPY . /pezkuwi
RUN cargo build --locked --release
# This is the 2nd stage: a very small image where we copy the Pezkuwi binary."
FROM docker.io/paritytech/base-bin:latest
LABEL description="Multistage Docker image for Pezkuwi: a platform for web3" \
io.parity.image.type="builder" \
io.parity.image.authors="chevdor@gmail.com, devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.description="Pezkuwi: a platform for web3" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/pezkuwi/pezkuwi_builder.Dockerfile" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/"
COPY --from=builder /pezkuwi/target/release/pezkuwi /usr/local/bin
USER root
RUN useradd -m -u 1001 -U -s /bin/sh -d /pezkuwi pezkuwi && \
mkdir -p /data /pezkuwi/.local/share && \
chown -R pezkuwi:pezkuwi /data && \
ln -s /data /pezkuwi/.local/share/pezkuwi && \
# unclutter and minimize the attack surface
rm -rf /usr/bin /usr/sbin && \
# check if executable works in this container
/usr/local/bin/pezkuwi --version
USER pezkuwi
EXPOSE 30333 9933 9944 9615
VOLUME ["/data"]
ENTRYPOINT ["/usr/local/bin/pezkuwi"]