Browse Source

initial commit

master
dave 7 years ago
commit
0c49d9e2c9
  1. 10
      Dockerfile
  2. 11
      start

10
Dockerfile

@ -0,0 +1,10 @@
FROM basessh
MAINTAINER Dave P
# Create user
RUN useradd --create-home nexus ; \
echo "nexus:nexus" | chpasswd
COPY start /start
RUN chmod +x /start

11
start

@ -0,0 +1,11 @@
#!/bin/bash
if [ ! -f /etc/ssh/sshd_config ]; then
# Regenerate ssh key per container
dpkg-reconfigure openssh-server
fi
chown nexus /nexus
# start services
supervisord
Loading…
Cancel
Save