docker-image-debian/Dockerfile
Mauro Torrez d07efa9719
All checks were successful
Build Docker images / docker (eumau/debian, , bullseye) (push) Successful in 19m21s
Build Docker images / docker (eumau/debian, , buster) (push) Successful in 6m43s
Build Docker images / docker (eumau/debian, -slim, bookworm) (push) Successful in 4m6s
Build Docker images / docker (eumau/debian, , bookworm) (push) Successful in 19m5s
Build Docker images / docker (eumau/debian, -slim, bullseye) (push) Successful in 4m29s
Build Docker images / docker (eumau/debian, -slim, buster) (push) Successful in 4m29s
update dockerfile (multiarch)
2024-02-27 16:14:22 -03:00

17 lines
598 B
Docker

ARG DEBIAN_VERSION=bullseye-slim
FROM golang:bookworm as confd
RUN apt-get update \
&& apt-get install -y \
build-essential \
&& git clone https://github.com/kelseyhightower/confd.git \
&& cd confd \
&& make
FROM debian:${DEBIAN_VERSION}
COPY --from=confd /go/confd/bin/confd /usr/local/bin/confd
RUN mkdir -p /start.d \
&& printf '#!/bin/bash\nset -e\n/usr/local/bin/confd -onetime -backend env\nrun-parts -v /start.d\nexec ${@}\n' > /entrypoint.sh \
&& mkdir -p /etc/confd/conf.d /etc/confd/templates \
&& chmod +x /usr/local/bin/confd /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]