mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +00:00
[CI] Docker image updates (#1799)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
FROM phusion/baseimage:0.11 as builder
|
||||
LABEL maintainer "chevdor@gmail.com"
|
||||
FROM paritytech/ci-linux:production as builder
|
||||
LABEL description="This is the build stage for Polkadot. Here we create the binary."
|
||||
|
||||
ARG PROFILE=release
|
||||
@@ -7,27 +6,16 @@ WORKDIR /polkadot
|
||||
|
||||
COPY . /polkadot
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y cmake pkg-config libssl-dev git clang
|
||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
|
||||
export PATH=$PATH:$HOME/.cargo/bin && \
|
||||
scripts/init.sh && \
|
||||
cargo build --$PROFILE
|
||||
RUN cargo build --$PROFILE
|
||||
|
||||
# ===== SECOND STAGE ======
|
||||
|
||||
FROM phusion/baseimage:0.11
|
||||
LABEL maintainer "chevdor@gmail.com"
|
||||
FROM debian:buster-slim
|
||||
LABEL description="This is the 2nd stage: a very small image where we copy the Polkadot binary."
|
||||
ARG PROFILE=release
|
||||
COPY --from=builder /polkadot/target/$PROFILE/polkadot /usr/local/bin
|
||||
|
||||
RUN mv /usr/share/ca* /tmp && \
|
||||
rm -rf /usr/share/* && \
|
||||
mv /tmp/ca-certificates /usr/share/ && \
|
||||
rm -rf /usr/lib/python* && \
|
||||
useradd -m -u 1000 -U -s /bin/sh -d /polkadot polkadot && \
|
||||
RUN useradd -m -u 1000 -U -s /bin/sh -d /polkadot polkadot && \
|
||||
mkdir -p /polkadot/.local/share/polkadot && \
|
||||
chown -R polkadot:polkadot /polkadot/.local && \
|
||||
ln -s /polkadot/.local/share/polkadot /data && \
|
||||
|
||||
Reference in New Issue
Block a user