-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
38 lines (23 loc) · 993 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
FROM python:3.6-slim-jessie
RUN apt-get update && apt-get install -y curl
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN curl -sL https://deb.nodesource.com/setup_13.x | bash - && apt-get install -y git nodejs cloc
WORKDIR /usr/jquery-data
COPY prep.py .
COPY jquery_releases.csv .
RUN python prep.py
RUN rm -rf jquery_releases.csv
# Docker caches results, so if you want to add custom steps to this dockerfile
# (maybe you want to copy in more files) then consider adding these steps below here.
# Otherwise you will need to download all versions of jQuery everytime you add new
# steps.
WORKDIR /usr
COPY jsinspect jsinspect
RUN npm install -g ./jsinspect
# Increase the amount of memory nodejs can allocate, this
# prevents JsInspect from running into the GC issues.
ENV NODE_OPTIONS=--max-old-space-size=4000
WORKDIR /usr/jquery-data
# Open a bash prompt, such that you can execute commands
# such as `cloc`.
ENTRYPOINT ["bash"]