title: Dockerfile for a gitlab container
body: <p>I am doing a school project where I must install gitlab ce in a debian Docker container.
  I came up with something but the gitlab installer gets stuck on :
  ruby_block[supervise_redis_sleep] action run</p>
  
  <p>I read somewhere you can Ctrl+C and reconfigure to skip this error but as it is a school project I can't afford doing anything messy.</p>
  
  <p>Would you have any tips for me ?</p>
  
  <pre><code>FROM debian:jessie
  
  ENV DEBIAN_FRONTEND noninteractive
  ENV TERM xterm
  
  RUN apt-get update
  RUN apt-get install -y dialog apt-utils curl openssh-server ca-certificates postfix
  RUN curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | bash
  RUN EXTERNAL_URL="http://0.0.0.0:3000" apt-get install -y --allow-unauthenticated gitlab-ce
  
  RUN gitlab-ctl reconfigure
  
  EXPOSE 443 80 22
  
  CMD ["gitlab-ctl","start"]
  </code></pre>
  
  <p>Thanks your your time :)</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I added this line before gitlab-ctl reconfigure but still stuck !</p>
  
  <pre><code>RUN cp /opt/gitlab/embedded/cookbooks/runit/files/default/gitlab-runsvdir.conf /etc/init/
  RUN systemctl restart gitlab-runsvdir
  </code></pre>
  
  <p><strong>EDIT 2</strong>
  I installed sudo and added it at each command. No improvment.</p>