blob: f7fc00ff7d1beb1bbcfea919705526fd97830dcf (
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
44
45
46
|
FROM docker.io/library/debian:13
# Flag that we are a devbox
RUN touch /run/.dbxenv
# 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 entrypoint
RUN mkdir -p /etc/dbx/rc.d
COPY init /sbin/init
ENTRYPOINT ["/sbin/init"]
|