Delete more unnecessary files from docker images

pull/623/head
Alex Brazier 8 years ago
parent dcdcea55e6
commit 61759c9a51

@ -5,11 +5,13 @@ WORKDIR /devdocs
RUN apt-get update && \
apt-get -y install git nodejs && \
gem install bundler
gem install bundler && \
rm -rf /var/lib/apt/lists/*
COPY Gemfile Gemfile.lock Rakefile /devdocs/
RUN bundle install --system
RUN bundle install --system && \
rm -rf ~/.gem /root/.bundle/cache /usr/local/bundle/cache
COPY . /devdocs

@ -11,7 +11,8 @@ RUN apk --update add nodejs build-base libstdc++ gzip git zlib-dev && \
thor docs:download --all && \
thor assets:compile && \
apk del gzip build-base git zlib-dev && \
rm -rf /var/cache/apk/* && rm -rf /tmp && rm -rf ~/.gem
rm -rf /var/cache/apk/* /tmp ~/.gem /root/.bundle/cache \
/usr/local/bundle/cache /usr/lib/node_modules
EXPOSE 9292
CMD rackup -o 0.0.0.0

Loading…
Cancel
Save