mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-05-06 10:07:58 +00:00
af28d23e6a
remove musl image and replace with the maintained CI Rust image for now.
28 lines
733 B
Docker
28 lines
733 B
Docker
#### BUILDER IMAGE -- quite big one ####
|
|
FROM paritytech/ci-linux:production as builder
|
|
LABEL maintainer="Daniel Maricic daniel@woss.io"
|
|
LABEL description="Polkadot Telemetry backend builder image"
|
|
|
|
ARG PROFILE=release
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN cargo build --${PROFILE} --bins --target x86_64-unknown-linux-musl
|
|
|
|
|
|
# MAIN IMAGE FOR PEOPLE TO PULL --- small one#
|
|
FROM scratch
|
|
LABEL maintainer="Daniel Maricic daniel@woss.io"
|
|
LABEL description="Polkadot Telemetry backend, static build"
|
|
|
|
ARG PROFILE=release
|
|
WORKDIR /usr/local/bin
|
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=builder /app/target/x86_64-unknown-linux-musl/$PROFILE/telemetry /usr/local/bin
|
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT ["telemetry"]
|