docker-gitlab/Dockerfile
Sameer Naik 279e7bdc97 moved dev package installation to install script
the dev packages are purged at the end of the gem installation as these
packages are not required anymore.
2014-09-18 11:46:20 +05:30

31 lines
804 B
Docker

FROM sameersbn/debian:jessie.20140918
MAINTAINER sameer@damagehead.com
RUN apt-get update \
&& apt-get install -y supervisor logrotate \
nginx openssh-server mysql-server redis-server \
git-core postgresql-client ruby rubygems \
python2.7 python-docutils \
libmysqlclient18 libpq5 zlib1g libyaml-0-2 libssl1.0.0 \
libgdbm3 libreadline6 libncurses5 libffi6 \
libxml2 libxslt1.1 libcurl3 libicu52 \
&& gem install --no-ri --no-rdoc bundler \
&& rm -rf /var/lib/apt/lists/* # 20140918
COPY assets/setup/ /app/setup/
RUN chmod 755 /app/setup/install
RUN /app/setup/install
COPY assets/config/ /app/setup/config/
COPY assets/init /app/init
RUN chmod 755 /app/init
EXPOSE 22
EXPOSE 80
EXPOSE 443
VOLUME ["/home/git/data"]
ENTRYPOINT ["/app/init"]
CMD ["app:start"]