OpenEthereum rebranding (#31)
This commit is contained in:
@@ -10,34 +10,37 @@ RUN apk add --no-cache \
|
||||
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
|
||||
rust \
|
||||
git
|
||||
|
||||
WORKDIR /openethereum
|
||||
COPY . /openethereum
|
||||
RUN cargo build --release --features final --target x86_64-alpine-linux-musl --verbose
|
||||
RUN strip target/x86_64-alpine-linux-musl/release/openethereum
|
||||
|
||||
FROM alpine:edge
|
||||
|
||||
# show backtraces
|
||||
ENV RUST_BACKTRACE 1
|
||||
|
||||
# curl and jq are installed to help create health and readiness checks on Kubernetes
|
||||
RUN apk add --no-cache \
|
||||
libstdc++ \
|
||||
eudev-libs \
|
||||
libgcc
|
||||
libgcc \
|
||||
curl \
|
||||
jq
|
||||
|
||||
RUN addgroup -g 1000 parity \
|
||||
&& adduser -u 1000 -G parity -s /bin/sh -D parity
|
||||
RUN addgroup -g 1000 openethereum \
|
||||
&& adduser -u 1000 -G openethereum -s /bin/sh -D openethereum
|
||||
|
||||
USER parity
|
||||
USER openethereum
|
||||
|
||||
EXPOSE 8080 8545 8180
|
||||
|
||||
WORKDIR /home/parity
|
||||
WORKDIR /home/openethereum
|
||||
|
||||
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 ./
|
||||
RUN mkdir -p /home/openethereum/.local/share/io.parity.ethereum/
|
||||
COPY --chown=openethereum:openethereum --from=builder /openethereum/target/x86_64-alpine-linux-musl/release/openethereum ./
|
||||
|
||||
ENTRYPOINT ["./parity"]
|
||||
ENTRYPOINT ["/home/openethereum/openethereum"]
|
||||
|
||||
Reference in New Issue
Block a user