grim/hgkeeper
Clone
Summary
Browse
Changes
Graph
Remove the mercurial 6.1 pin from the container image
23 months ago, Gary Kramlich
653b933ba715
Remove the mercurial 6.1 pin from the container image
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"
]