-
Notifications
You must be signed in to change notification settings - Fork 1
/
toolbox.multiarch.alpine.Dockerfile
59 lines (53 loc) · 1.69 KB
/
toolbox.multiarch.alpine.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM alpine:latest
ARG VCS_REF
ARG BUILD_DATE
LABEL org.opencontainers.image.title="ToolBox" \
org.opencontainers.image.authors="Tobias Hargesheimer <docker@ison.ws>" \
org.opencontainers.image.version="${VCS_REF}" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.revision="${VCS_REF}" \
org.opencontainers.image.description="ToolBox: docker run --rm --name toolbox -d tobi312/tools:toolbox && docker exec -it toolbox sh && nc -zv -w 3 <HOST> <PORT>" \
org.opencontainers.image.documentation="https://github.com/Tob1as/docker-tools/blob/main/README.md#toolbox" \
org.opencontainers.image.base.name="docker.io/library/alpine:latest" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/tools" \
org.opencontainers.image.source="https://github.com/Tob1as/docker-tools"
SHELL ["/bin/sh", "-euxo", "pipefail", "-c"]
RUN \
addgroup --gid 1000 user ; \
adduser --system --shell /bin/sh --uid 1000 --ingroup user --home /home/user user ; \
apk add --no-cache \
bash \
git \
nano \
wget \
curl \
iputils \
netcat-openbsd \
tzdata \
zip unzip \
xz \
tree \
patch \
screen \
tmux \
openssh-client \
rsync \
autossh \
ca-certificates \
openssl \
pwgen \
makepasswd \
jq \
bind-tools \
apache2-utils \
micro \
socat \
oath-toolkit-oathtool \
msmtp \
; \
echo ">> Tools installed!"
#USER user
#WORKDIR /home/user
ENTRYPOINT ["/bin/sh", "-c", "--"]
CMD ["while true; do sleep 60; done;"]