initial commit
This commit is contained in:
commit
849efc8785
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM ubuntu:14.04
|
||||
MAINTAINER Dave P
|
||||
|
||||
# Admin user
|
||||
RUN useradd --create-home --groups sudo admin ; echo "admin:admin" | chpasswd ; locale-gen en
|
||||
# ZNC user
|
||||
RUN useradd --create-home znc ; echo "znc:znc" | chpasswd
|
||||
|
||||
# Install bind and vim
|
||||
RUN mkdir /var/run/sshd ; apt-get update ; apt-get install -y supervisor vim openssh-server znc znc-python znc-dev dpkg-dev
|
||||
|
||||
# Get ZNC source
|
||||
RUN su -c 'cd /home/znc ; apt-get source znc' znc
|
||||
|
||||
COPY daemons.conf /etc/supervisor/conf.d/daemons.conf
|
||||
COPY start /start
|
||||
#EXPOSE 53/udp
|
||||
EXPOSE 22
|
||||
RUN chmod +x /start
|
||||
|
11
daemons.conf
Normal file
11
daemons.conf
Normal file
@ -0,0 +1,11 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[program:sshd]
|
||||
command=/usr/sbin/sshd -D
|
||||
autorestart=true
|
||||
|
||||
[program:znc]
|
||||
command=su -c "/usr/bin/znc --foreground --debug" znc
|
||||
autorestart=true
|
||||
|
Loading…
Reference in New Issue
Block a user