mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
optimize RUN statements
This commit is contained in:
parent
d723a97acd
commit
916bb7d38f
19
Dockerfile
19
Dockerfile
@ -2,20 +2,17 @@ FROM sameersbn/ubuntu:12.04.20140418
|
||||
MAINTAINER sameer@damagehead.com
|
||||
|
||||
RUN apt-get install -y python-software-properties && \
|
||||
add-apt-repository -y ppa:git-core/ppa && apt-get update
|
||||
|
||||
RUN apt-get install -y build-essential checkinstall \
|
||||
add-apt-repository -y ppa:git-core/ppa && \
|
||||
add-apt-repository -y ppa:brightbox/ruby-ng && \
|
||||
apt-get update && \
|
||||
apt-get install -y build-essential checkinstall postgresql-client-9.1 \
|
||||
nginx git-core mysql-server redis-server python2.7 python-docutils \
|
||||
libmysqlclient-dev libpq-dev zlib1g-dev libyaml-dev libssl-dev \
|
||||
libgdbm-dev libreadline-dev libncurses5-dev libffi-dev \
|
||||
libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev && \
|
||||
apt-get clean
|
||||
|
||||
RUN add-apt-repository -y ppa:brightbox/ruby-ng && apt-get update && \
|
||||
apt-get install -y ruby2.0 ruby-switch ruby2.0-dev && apt-get clean && \
|
||||
ruby-switch --set ruby2.0 && gem install --no-ri --no-rdoc bundler
|
||||
|
||||
RUN apt-get install -y postgresql-client-9.1 && apt-get clean
|
||||
libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev \
|
||||
ruby2.0 ruby-switch ruby2.0-dev && \
|
||||
ruby-switch --set ruby2.0 && gem install --no-ri --no-rdoc bundler && \
|
||||
apt-get clean # 20140418
|
||||
|
||||
ADD assets/ /app/
|
||||
RUN chmod 755 /app/init /app/setup/install
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user