mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-14 06:01:04 +00:00
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
#### BUILDER IMAGE -- quite big one ####
|
#### BUILDER IMAGE -- quite big one ####
|
||||||
FROM paritytech/ci-linux:production as builder
|
FROM paritytech/ci-linux:production as builder
|
||||||
LABEL maintainer="Daniel Maricic daniel@woss.io"
|
LABEL maintainer="Parity Technologies"
|
||||||
LABEL description="Polkadot Telemetry backend builder image"
|
LABEL description="Polkadot Telemetry backend builder image"
|
||||||
|
|
||||||
ARG PROFILE=release
|
ARG PROFILE=release
|
||||||
@@ -8,19 +8,19 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN cargo build --${PROFILE} --bins --target x86_64-unknown-linux-musl
|
RUN cargo build --${PROFILE} --bins
|
||||||
|
|
||||||
|
|
||||||
# MAIN IMAGE FOR PEOPLE TO PULL --- small one#
|
# MAIN IMAGE FOR PEOPLE TO PULL --- small one#
|
||||||
FROM scratch
|
FROM scratch
|
||||||
LABEL maintainer="Daniel Maricic daniel@woss.io"
|
LABEL maintainer="Parity Technologies"
|
||||||
LABEL description="Polkadot Telemetry backend, static build"
|
LABEL description="Polkadot Telemetry backend, static build"
|
||||||
|
|
||||||
ARG PROFILE=release
|
ARG PROFILE=release
|
||||||
WORKDIR /usr/local/bin
|
WORKDIR /usr/local/bin
|
||||||
|
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
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
|
COPY --from=builder /app/target/$PROFILE/telemetry /usr/local/bin
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user