-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4256 from chenyukang/yukang-add-aarch64
Add aarch64 docker image for ckb
- Loading branch information
Showing
2 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM nervos/ckb-docker-builder:aarch64-rust-1.71.1 as ckb-docker-builder | ||
|
||
WORKDIR /ckb | ||
COPY ./ . | ||
|
||
RUN make prod-docker | ||
|
||
FROM arm64v8/ubuntu | ||
LABEL description="Nervos CKB is a public permissionless blockchain, the common knowledge layer of Nervos network." | ||
LABEL maintainer="Nervos Core Dev <dev@nervos.org>" | ||
|
||
RUN groupadd -g 1000 ckb \ | ||
&& useradd -m -u 1000 -g ckb -s /bin/sh ckb \ | ||
&& mkdir -p /var/lib/ckb | ||
|
||
WORKDIR /var/lib/ckb | ||
|
||
COPY --from=ckb-docker-builder \ | ||
/usr/lib/aarch64-linux-gnu/libssl.so.* \ | ||
/usr/lib/aarch64-linux-gnu/libcrypto.so.* \ | ||
/usr/lib/aarch64-linux-gnu/ | ||
COPY --from=ckb-docker-builder /ckb/target/prod/ckb /ckb/docker/docker-entrypoint.sh /bin/ | ||
RUN chown -R ckb:ckb /var/lib/ckb \ | ||
&& chmod 755 /var/lib/ckb | ||
|
||
USER ckb | ||
ENV CKB_CHAIN=mainnet | ||
|
||
EXPOSE 8114 8115 | ||
VOLUME ["/var/lib/ckb"] | ||
ENTRYPOINT ["/bin/docker-entrypoint.sh"] |