mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-25 18:48:00 +00:00
Merge pull request #326 from paritytech/mp-ski-holiday
Switch away from using MUSL builds
This commit is contained in:
+5
-8
@@ -1,18 +1,14 @@
|
||||
#### BUILDER IMAGE -- quite big one ####
|
||||
FROM paritytech/musl-ci-linux:latest as builder
|
||||
LABEL maintainer="Parity Technologies"
|
||||
LABEL description="Polkadot Telemetry backend builder image"
|
||||
FROM paritytech/ci-linux:production as builder
|
||||
|
||||
ARG PROFILE=release
|
||||
WORKDIR /app
|
||||
|
||||
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#
|
||||
FROM scratch
|
||||
FROM debian:buster-slim
|
||||
LABEL maintainer="Parity Technologies"
|
||||
LABEL description="Polkadot Telemetry backend, static build"
|
||||
|
||||
@@ -20,7 +16,8 @@ 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
|
||||
COPY --from=builder /app/target/$PROFILE/telemetry /usr/local/bin
|
||||
RUN apt-get -y update && apt-get -y install openssl && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user