mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-22 02:08:04 +00:00
0feb4adeb8
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
883 B
Docker
31 lines
883 B
Docker
FROM docker.io/paritytech/ci-unified:bullseye-1.88.0-2025-06-27-v202507221446 AS builder
|
|
|
|
ARG PROFILE=release
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN cargo build --${PROFILE} --bins -j 2
|
|
|
|
# MAIN IMAGE FOR PEOPLE TO PULL --- small one#
|
|
FROM docker.io/debian:bullseye-slim
|
|
LABEL maintainer="Dijital Kurdistan Tech Institute <admin@pezkuwichain.io>"
|
|
LABEL description="Pezkuwichain Telemetry Backend shard/core binaries"
|
|
|
|
ARG PROFILE=release
|
|
WORKDIR /usr/local/bin
|
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=builder /app/target/$PROFILE/telemetry_shard /usr/local/bin
|
|
COPY --from=builder /app/target/$PROFILE/telemetry_core /usr/local/bin
|
|
|
|
RUN useradd -m -u 1000 -U telemetry && \
|
|
apt-get -y update && \
|
|
apt-get -y install openssl && \
|
|
apt-get autoremove -y && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/
|
|
|
|
USER telemetry
|
|
EXPOSE 8000
|