forked from freeCodeCamp/devdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (15 loc) · 433 Bytes
/
Dockerfile
File metadata and controls
22 lines (15 loc) · 433 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ruby:2.4.2
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
EXPOSE 9292
CMD rackup -o 0.0.0.0