<commit_before>#https://hub.docker.com/r/mhart/alpine-node/
FROM mhart/alpine-node:6.2.1
# get the slow/big stuff done early so the cache is rarely invalidated

# git is a bower dependency
# bash is used for some scripts in ./bin which also run in the container build
RUN apk add git bash --update-cache
WORKDIR /opt
ADD ./package.json  /opt/package.json
RUN npm install
ADD ./bower.json  /opt/bower.json
RUN ./node_modules/.bin/bower --allow-root --config.analytics=false install

# OK, all the slow stuff has been run and hopefully cached
ADD app /opt/app
ADD wwwroot /opt/wwwroot
ADD migrations /opt/migrations
ADD knexfile.js config.default.js /opt/
ADD bin/build-browserify.sh /opt/bin/build-browserify.sh<commit_msg>fix: ignore scripts during docker build<commit_after>#https://hub.docker.com/r/mhart/alpine-node/
FROM mhart/alpine-node:6.7.0
# get the slow/big stuff done early so the cache is rarely invalidated

# git is a bower dependency
# bash is used for some scripts in ./bin which also run in the container build
RUN apk add git bash --update-cache
WORKDIR /opt
ADD ./package.json  /opt/package.json
RUN npm install --ignore-scripts
ADD ./bower.json  /opt/bower.json
RUN ./node_modules/.bin/bower --allow-root --config.analytics=false install

# OK, all the slow stuff has been run and hopefully cached
ADD app /opt/app
ADD wwwroot /opt/wwwroot
ADD migrations /opt/migrations
ADD knexfile.js config.default.js /opt/
ADD bin/build-browserify.sh /opt/bin/build-browserify.sh
{'fraction_non_alphanumeric': 0.10221923335574983, 'fraction_numerical': 0.004034969737726967, 'mean_word_length': 3.7088607594936707, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6920393', 'n_tokens_mistral': 492, 'n_tokens_neox': 478, 'n_words': 173}