devdocs/Dockerfile

25 lines
451 B
Text
Raw Normal View History

2019-01-20 22:16:08 +01:00
FROM ruby:2.6.0
2015-12-01 21:46:16 +01:00
2018-08-11 17:24:55 +02:00
ENV LANG=C.UTF-8
2015-12-01 21:46:16 +01:00
WORKDIR /devdocs
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
2015-12-01 21:46:16 +01:00
EXPOSE 9292
CMD rackup -o 0.0.0.0