mirror of
https://github.com/pezkuwichain/pez-solochain-template.git
synced 2026-04-22 04:28:01 +00:00
c297b0f009
This commit applies the PezkuwiChain terminology to the Solochain Template.
Changes include:
- Renaming packages:
- `solochain-template-node` -> `pez-solochain-template-node`
- `solochain-template-runtime` -> `pez-solochain-template-runtime`
- Updating dependencies in `Cargo.toml` files.
- Fixing the `solochain-template-runtime` path in the root `Cargo.toml`.
- Updating `runtime/src/lib.rs` with new `spec_name` and `impl_name`.
- Rebranding documentation and comments (Polkadot -> Pezkuwi, Parachain -> TeyrChain).
- Updating `Dockerfile` binary names.
29 lines
764 B
Docker
29 lines
764 B
Docker
FROM docker.io/paritytech/ci-unified:latest as builder
|
|
|
|
WORKDIR /pezkuwi
|
|
COPY . /pezkuwi
|
|
|
|
RUN cargo fetch
|
|
RUN cargo build --locked --release
|
|
|
|
FROM docker.io/parity/base-bin:latest
|
|
|
|
COPY --from=builder /pezkuwi/target/release/pez-solochain-template-node /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/pez-solochain-template-node --version
|
|
|
|
USER pezkuwi
|
|
|
|
EXPOSE 30333 9933 9944 9615
|
|
VOLUME ["/data"]
|
|
|
|
ENTRYPOINT ["/usr/local/bin/pez-solochain-template-node"]
|