devdocs/Dockerfile-alpine
Thibaut Courouble d74cf09770 Bump Ruby 2.5.3
2018-12-17 17:26:32 -05:00

19 lines
482 B
Text

FROM ruby:2.5.3-alpine
ENV LANG=C.UTF-8
WORKDIR /devdocs
COPY . /devdocs
RUN apk --update add nodejs build-base libstdc++ gzip git zlib-dev && \
gem install bundler && \
bundle install --system --without test && \
thor docs:download --all && \
thor assets:compile && \
apk del gzip build-base git zlib-dev && \
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