Skip to content

Commit 3392741

Browse files
committed
binaries copy
Use this Dockerfile/Image to copy static files from Images to localhost
1 parent e685699 commit 3392741

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

binaries.busybox.Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Use this Dockerfile/Image to copy static files from Images to localhost:
2+
# 1. build: docker build --no-cache --progress=plain -t tobi312/tools:binaries -f binaries.busybox.Dockerfile .
3+
# 2. run: docker run --rm --name binaries-copy -d docker.io/tobi312/tools:binaries
4+
# 3. copy: docker cp binaries-copy:/binaries ./binaries
5+
# 4. clean: docker rm -fv binaries-copy
6+
FROM busybox:stable
7+
8+
RUN mkdir /binaries
9+
WORKDIR /binaries
10+
11+
COPY --from=docker.io/library/alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
12+
13+
# from scratch images
14+
COPY --from=tobi312/tools:azcopy /usr/local/bin/azcopy .
15+
COPY --from=tobi312/tools:keepalived /usr/local/sbin/keepalived .
16+
COPY --from=tobi312/tools:mqtt-forwarder /usr/local/bin/mqtt-forwarder .
17+
COPY --from=tobi312/tools:postgres-exporter /bin/postgres_exporter .
18+
COPY --from=tobi312/tools:proxyscotch /usr/local/bin/proxyscotch .
19+
COPY --from=tobi312/tools:static-curl /usr/bin/curl .
20+
COPY --from=tobi312/tools:static-helm /usr/local/bin/helm .
21+
COPY --from=tobi312/tools:static-jq /usr/local/bin/jq .
22+
COPY --from=tobi312/tools:static-kubectl /usr/local/bin/kubectl .
23+
COPY --from=tobi312/tools:static-nginx /nginx/ ./nginx/
24+
COPY --from=tobi312/tools:static-ssh-tools /usr/local/bin/ ./ssh-tools/
25+
COPY --from=tobi312/tools:static-xq /usr/local/bin/xq .
26+
COPY --from=tobi312/tools:static-yq /usr/local/bin/yq .
27+
#COPY --from=tobi312/tools:static-envsubst /usr/local/bin/envsubst .
28+
29+
# from distroless images (has additional dependencies)
30+
COPY --from=tobi312/tools:prometheus-mosquitto-exporter /usr/local/bin/prometheus-mosquitto-exporter .
31+
COPY --from=tobi312/tools:prometheus-mqtt-transport /usr/local/bin/ ./prom2mqtt/
32+
33+
RUN tree .
34+
35+
#ENTRYPOINT [""]
36+
CMD ["sleep", "infinity"]

0 commit comments

Comments
 (0)