-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (41 loc) · 1.23 KB
/
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
FROM alpine:3.21
LABEL org.opencontainers.image.authors="https://github.com/mpepping"
LABEL org.opencontainers.image.description="PodShell is a container image for development and debug purposes"
LABEL org.opencontainers.image.documentation="https://github.com/mpepping/podshell"
LABEL org.opencontainers.image.source="https://github.com/mpepping/podshell"
LABEL org.opencontainers.image.title="podshell"
LABEL org.opencontainers.image.url="ghcr.io/mpepping/podshell/shell:latest"
RUN apk add --no-cache \
atop \
bash \
bash-completion \
bind-tools \
curl \
htop \
iproute2 \
jq \
man-db \
man-pages \
openssh-client \
openssl \
procps \
shadow \
skopeo \
socat \
strace \
sudo \
tcpdump \
tmux \
vim \
virt-what \
wget
ADD include/ /
RUN usermod -s /bin/bash root && \
addgroup -g 1000 podshell && \
adduser -D -u 1000 -G podshell -s /bin/bash -g "Podshell User" podshell && \
su - podshell -c "/usr/local/bin/_add_binenv" && \
su - podshell -c "/usr/local/bin/_add_dbin --install /home/podshell/.local/bin/dbin"
USER 1000
WORKDIR /home/podshell
ENTRYPOINT [ "/bin/bash", "-l", "-c" ]
CMD [ "bash" ]