Updated Continerfiles to minimize size
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#Adapted from iangregsondev - https://github.com/iangregsondev/electrs-docker/blob/main/Dockerfile
|
||||
|
||||
#FROM rust:1.44.1-slim-buster AS builder
|
||||
|
||||
FROM docker.io/almalinux/9-base:latest as builder
|
||||
|
||||
ARG VERSION=v{{ electrs_version }}
|
||||
@@ -17,11 +15,12 @@ RUN git clone --branch $VERSION $REPO .
|
||||
RUN cargo build --release --bin electrs
|
||||
|
||||
|
||||
#FROM debian:buster-slim
|
||||
|
||||
FROM docker.io/almalinux/9-minimal:latest
|
||||
|
||||
RUN microdnf update -y && microdnf clean all
|
||||
RUN printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf \
|
||||
&& microdnf update -y \
|
||||
&& microdnf clean all \
|
||||
&& rm -rf /var/cache/* /var/log* /tmp/*
|
||||
|
||||
COPY --from=builder /build/target/release/electrs /bin/electrs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user