Use builtin TARGETARCH arg
Some checks failed
Build Docker images / docker (eumau/debian, , bullseye) (push) Failing after 17s
Build Docker images / docker (eumau/debian, , bookworm) (push) Failing after 19s
Build Docker images / docker (eumau/debian, , buster) (push) Failing after 14s
Build Docker images / docker (eumau/debian, -slim, bookworm) (push) Failing after 17s
Build Docker images / docker (eumau/debian, -slim, bullseye) (push) Failing after 16s
Build Docker images / docker (eumau/debian, -slim, buster) (push) Failing after 16s
Some checks failed
Build Docker images / docker (eumau/debian, , bullseye) (push) Failing after 17s
Build Docker images / docker (eumau/debian, , bookworm) (push) Failing after 19s
Build Docker images / docker (eumau/debian, , buster) (push) Failing after 14s
Build Docker images / docker (eumau/debian, -slim, bookworm) (push) Failing after 17s
Build Docker images / docker (eumau/debian, -slim, bullseye) (push) Failing after 16s
Build Docker images / docker (eumau/debian, -slim, buster) (push) Failing after 16s
This commit is contained in:
parent
c03c21438b
commit
6d88501a81
17
Dockerfile
17
Dockerfile
@ -1,14 +1,15 @@
|
|||||||
ARG DEBIAN_VERSION=bullseye-slim
|
ARG DEBIAN_VERSION=bullseye-slim
|
||||||
FROM golang:${DEBIAN_VERSION%-*} as confd
|
# FROM golang:${DEBIAN_VERSION%-*} as confd
|
||||||
RUN apt-get update \
|
# RUN apt-get update \
|
||||||
&& apt-get install -y \
|
# && apt-get install -y \
|
||||||
build-essential \
|
# build-essential \
|
||||||
&& git clone https://github.com/kelseyhightower/confd.git \
|
# && git clone https://github.com/kelseyhightower/confd.git \
|
||||||
&& cd confd \
|
# && cd confd \
|
||||||
&& make
|
# && make
|
||||||
|
|
||||||
FROM debian:${DEBIAN_VERSION}
|
FROM debian:${DEBIAN_VERSION}
|
||||||
COPY --from=confd /go/confd/bin/confd /usr/local/bin/confd
|
# COPY --from=confd /go/confd/bin/confd /usr/local/bin/confd
|
||||||
|
ADD https://github.com/kelseyhightower/confd/releases/download/v0.16.0/confd-0.16.0-linux-${TARGETARCH} /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