update dockerfile (multiarch)
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
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
This commit is contained in:
parent
e396ab8872
commit
d07efa9719
21
Dockerfile
21
Dockerfile
@ -1,19 +1,14 @@
|
|||||||
ARG DEBIAN_VERSION=bullseye-slim
|
ARG DEBIAN_VERSION=bullseye-slim
|
||||||
FROM golang:1.9-alpine as confd
|
FROM golang:bookworm as confd
|
||||||
ARG CONFD_VERSION=0.16.0
|
RUN apt-get update \
|
||||||
ADD https://github.com/kelseyhightower/confd/archive/v${CONFD_VERSION}.tar.gz /tmp/
|
&& apt-get install -y \
|
||||||
RUN apk add --no-cache \
|
build-essential \
|
||||||
bzip2 \
|
&& git clone https://github.com/kelseyhightower/confd.git \
|
||||||
make \
|
&& cd confd \
|
||||||
gcc && \
|
&& make
|
||||||
mkdir -p /go/src/github.com/kelseyhightower/confd && \
|
|
||||||
cd /go/src/github.com/kelseyhightower/confd && \
|
|
||||||
tar --strip-components=1 -zxf /tmp/v${CONFD_VERSION}.tar.gz && \
|
|
||||||
go install github.com/kelseyhightower/confd && \
|
|
||||||
rm -rf /tmp/v${CONFD_VERSION}.tar.gz
|
|
||||||
|
|
||||||
FROM debian:${DEBIAN_VERSION}
|
FROM debian:${DEBIAN_VERSION}
|
||||||
COPY --from=confd /go/bin/confd /usr/local/bin/confd
|
COPY --from=confd /go/confd/bin/confd /usr/local/bin/confd
|
||||||
RUN mkdir -p /start.d \
|
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 \
|
&& 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 \
|
&& mkdir -p /etc/confd/conf.d /etc/confd/templates \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user