mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-07-20 12:45:43 +00:00
use alpine
This commit is contained in:
+3
-7
@@ -1,15 +1,11 @@
|
|||||||
#### BUILDER IMAGE -- quite big one ####
|
FROM rust:alpine as builder
|
||||||
FROM paritytech/musl-ci-linux:latest as builder
|
|
||||||
LABEL maintainer="Parity Technologies"
|
|
||||||
LABEL description="Polkadot Telemetry backend builder image"
|
|
||||||
|
|
||||||
ARG PROFILE=release
|
ARG PROFILE=release
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN cargo build --${PROFILE} --bins --target x86_64-unknown-linux-musl
|
RUN apk add musl-dev openssl-dev; cargo build --${PROFILE} --bins
|
||||||
|
|
||||||
|
|
||||||
# MAIN IMAGE FOR PEOPLE TO PULL --- small one#
|
# MAIN IMAGE FOR PEOPLE TO PULL --- small one#
|
||||||
FROM scratch
|
FROM scratch
|
||||||
@@ -20,7 +16,7 @@ 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