blob: 8aa03ecdd492683d11c64a2300f122eed594f6ad (
plain)
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
|
FROM docker.io/library/debian:13
# Remove container-specific APT configurations, and install required packages
RUN rm /etc/apt/apt.conf.d/docker-* && \
apt-get update && \
apt-get install -y \
bash-completion \
bzip2 \
curl \
git \
gnupg \
htop \
less \
locales \
man-db \
manpages \
nano \
openssh-client \
openssh-server \
procps \
sudo \
tini \
trash-cli \
tree \
vim \
wget \
zip \
&& \
apt-get clean && \
rm -dr /var/lib/apt/lists/*
# Configure locale with UTF-8 support
RUN update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8
# Configure SSH server
RUN echo "StreamLocalBindUnlink yes" >> /etc/ssh/sshd_config && \
echo "AuthorizedKeysFile /etc/ssh/authorized_keys" >> /etc/ssh/sshd_config && \
touch /etc/ssh/authorized_keys
# Set up the init and stop
RUN mkdir -p /etc/dbx
COPY init stop /sbin
ENTRYPOINT ["/sbin/init"]
|