Revert "remove cron and base off dpedu/base"
This reverts commit a89cb8d89c
.
This commit is contained in:
parent
a89cb8d89c
commit
bb93f396e1
|
@ -1,6 +1,8 @@
|
|||
FROM dpedu/base
|
||||
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
|
||||
|
||||
|
@ -11,7 +13,7 @@ RUN mkdir /var/run/sshd ; apt-get update ; apt-get install -y supervisor vim ope
|
|||
RUN su -c 'cd /home/znc ; apt-get source znc' znc
|
||||
|
||||
# Set nginx workers to a low number
|
||||
RUN sed -i -e"s/^worker_processes\s*4/worker_processes 2/" /etc/nginx/nginx.conf
|
||||
RUN sed -i -e"s/^worker_processes\s*4/worker_processes 1/" /etc/nginx/nginx.conf
|
||||
# Set nginx user to ZNC user
|
||||
RUN sed -i -e"s/^user\s*www\-data/user znc/" /etc/nginx/nginx.conf
|
||||
# Turn off nginx daemon mode
|
||||
|
@ -32,6 +34,7 @@ RUN rm /tmp/crontab
|
|||
# Install startup stuff
|
||||
COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf
|
||||
COPY nginx.conf /etc/supervisor/conf.d/nginx.conf
|
||||
COPY cron.conf /etc/supervisor/conf.d/cron.conf
|
||||
COPY znc.conf /etc/supervisor/conf.d/znc.conf
|
||||
COPY sshd.conf /etc/supervisor/conf.d/sshd.conf
|
||||
COPY start /start
|
||||
|
@ -41,3 +44,4 @@ RUN chmod +x /start
|
|||
EXPOSE 22
|
||||
# nginx
|
||||
EXPOSE 80
|
||||
|
||||
|
|
Loading…
Reference in New Issue