7781cbbc57
* ci: reduce gitlab pipelines significantly * ci: build pipeline for PR * ci: remove dead weight * ci: remove github release script * ci: remove forever broken aura tests * ci: add random stuff to the end of the pipes * ci: add wind and mac to the end of the pipe * ci: remove snap artifacts * ci: (re)move dockerfiles * ci: clarify job names * ci: add cargo audit job * ci: make audit script executable * ci: ignore snap and docker files for rust check * ci: simplify audit script * ci: rename misc to optional * ci: add publish script to releaseable branches * ci: more verbose cp command for windows build * ci: fix weird binary checksum logic in push script * ci: fix regex in push script for windows * ci: simplify gitlab caching * docs: align README with ci changes * ci: specify default cargo target dir * ci: print verbose environment * ci: proper naming of scripts * ci: restore docker files * ci: use docker hub file * ci: use cargo home instead of cargo target dir * ci: touch random rust file to trigger real builds * ci: set cargo target dir for audit script * ci: remove temp file * ci: don't export the cargo target dir in the audit script * ci: fix windows unbound variable * docs: fix gitlab badge path * rename deprecated gitlab ci variables https://docs.gitlab.com/ee/ci/variables/#9-0-renaming * ci: fix git compare for nightly builds * test: skip c++ example for all platforms but linux * ci: add random rust file to trigger tests * ci: remove random rust file * disable cpp lib test for mac, win and beta (#9686)
44 lines
785 B
Docker
44 lines
785 B
Docker
FROM alpine:edge AS builder
|
|
|
|
# show backtraces
|
|
ENV RUST_BACKTRACE 1
|
|
|
|
RUN apk add --no-cache \
|
|
build-base \
|
|
cargo \
|
|
cmake \
|
|
eudev-dev \
|
|
linux-headers \
|
|
perl \
|
|
rust
|
|
|
|
WORKDIR /parity
|
|
COPY . /parity
|
|
RUN cargo build --release --target x86_64-alpine-linux-musl --verbose
|
|
RUN strip target/x86_64-alpine-linux-musl/release/parity
|
|
|
|
|
|
FROM alpine:edge
|
|
|
|
# show backtraces
|
|
ENV RUST_BACKTRACE 1
|
|
|
|
RUN apk add --no-cache \
|
|
libstdc++ \
|
|
eudev-libs \
|
|
libgcc
|
|
|
|
RUN addgroup -g 1000 parity \
|
|
&& adduser -u 1000 -G parity -s /bin/sh -D parity
|
|
|
|
USER parity
|
|
|
|
EXPOSE 8080 8545 8180
|
|
|
|
WORKDIR /home/parity
|
|
|
|
RUN mkdir -p /home/parity/.local/share/io.parity.ethereum/
|
|
COPY --chown=parity:parity --from=builder /parity/target/x86_64-alpine-linux-musl/release/parity ./
|
|
|
|
ENTRYPOINT ["./parity"]
|