forked from freeCodeCamp/devdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (37 loc) · 855 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ruby:2.6.5-alpine
ENV LANG=C.UTF-8
ENV ENABLE_SERVICE_WORKER=true
WORKDIR /devdocs
COPY . /devdocs
RUN apk --update add nodejs build-base libstdc++ gzip git zlib-dev zip unzip curl wget libcurl libffi && \
gem install bundler && \
bundle install --system --without test
RUN thor docs:download \
bash \
c \
cpp \
cmake@3.10 \
dart@2 \
gcc@8 \
"gcc@8 CPP" \
gnu_fortran@7 \
go \
haskell@8 \
javascript \
kotlin \
"node@8 LTS" \
"node@10 LTS" \
openjdk@8 \
perl@5.26 \
php \
python@2.7 \
python@3.6 \
python@3.7 \
ruby@2.5 \
rust
RUN 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