mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
464 B
18 lines
464 B
8 years ago
|
FROM ruby:2.4.1-alpine
|
||
|
|
||
|
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
|