|
|
@@ -1,17 +1,22 @@
|
|
|
-
|
|
|
FROM ruby:2.4.1
|
|
|
-MAINTAINER Conor Heine <conor.heine@gmail.com>
|
|
|
-
|
|
|
-RUN apt-get update
|
|
|
-RUN apt-get -y install git nodejs
|
|
|
-COPY . /devdocs
|
|
|
-RUN gem install bundler
|
|
|
|
|
|
WORKDIR /devdocs
|
|
|
|
|
|
-RUN bundle install --system
|
|
|
-RUN thor docs:download --all
|
|
|
+RUN apt-get update && \
|
|
|
+ apt-get -y install git nodejs && \
|
|
|
+ gem install bundler && \
|
|
|
+ rm -rf /var/lib/apt/lists/*
|
|
|
+
|
|
|
+COPY Gemfile Gemfile.lock Rakefile /devdocs/
|
|
|
+
|
|
|
+RUN bundle install --system && \
|
|
|
+ rm -rf ~/.gem /root/.bundle/cache /usr/local/bundle/cache
|
|
|
+
|
|
|
+COPY . /devdocs
|
|
|
+
|
|
|
+RUN thor docs:download --all && \
|
|
|
+ thor assets:compile && \
|
|
|
+ rm -rf /tmp
|
|
|
|
|
|
EXPOSE 9292
|
|
|
CMD rackup -o 0.0.0.0
|
|
|
-
|