-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (16 loc) · 724 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM alpine
ARG TARGETOS
ARG TARGETARCH
RUN set -x \
&& apk add --no-cache ca-certificates \
&& wget -O redis-node-finder.tar.gz https://github.com/kubedb/redis-node-finder/releases/download/v0.2.0/redis-node-finder-${TARGETOS}-${TARGETARCH}.tar.gz \
&& tar xzf redis-node-finder.tar.gz \
&& chmod +x redis-node-finder-${TARGETOS}-${TARGETARCH} \
&& mv redis-node-finder-${TARGETOS}-${TARGETARCH} redis-node-finder
FROM alpine
LABEL org.opencontainers.image.source https://github.com/kubedb/redis-init-docker
RUN apk add --no-cache bash
COPY scripts /tmp/scripts
COPY init_scripts /init_scripts
COPY --from=0 /redis-node-finder /tmp/scripts/redis-node-finder
ENTRYPOINT ["/init_scripts/run.sh"]