grim/hgkeeper
Clone
Summary
Browse
Changes
Graph
ignore the build binaries
22 months ago, Gary Kramlich
ef4ae04808d3
ignore the build binaries
FROM
rwgrim/hgkeeper:latest
# rwgrim/hgkeeper already creates an hg user so we don't need to create it here.
# Install openssh-server
RUN
set
-ex
&&
\
apt-get
update
&&
\
apt-get
install
-y
--no-install-recommends
openssh-server
tini
&&
\
apt-get
clean
&&
\
rm
-rf
/var/lib/apt/lists
# Copy the openssh hgkeeper config into place. The include isn't working, so
# we just append our config to the sshd_config file
COPY
hgkeeper.conf
/etc/ssh/hgkeeper.conf
# Configure openssh-server
RUN
set
-ex
&&
\
mkdir
-p
/run/sshd
&&
\
cat
/etc/ssh/hgkeeper.conf
>>
/etc/ssh/sshd_config
# Set the command
CMD
[
"tini"
,
"--"
,
"/usr/sbin/sshd"
,
"-D"
,
"-e"
]