<commit_before>#!/bin/bash
set -ev

rm -rf docker-build

docker build -t asimov-deploy/asimov-deploy:build . -f Dockerfile.build
docker run --rm asimov-deploy/asimov-deploy:build
docker create --name extract asimov-deploy/asimov-deploy:build

mkdir -p docker-build/dist/release
docker cp extract:/asimov-deploy/dist/release ./docker-build/dist
docker rm -f extract

cp -r app docker-build
mkdir -p docker-build/public && cp -r public/img docker-build/public
cp -r views docker-build
cp -r library-licenses docker-build
cp package.json docker-build
cp server.js docker-build
cp LICENSE docker-build
cp NOTICE docker-build

docker build -t asimov-deploy/asimov-deploy:latest .

PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)

echo Building asimov-deploy/asimov-deploy:$PACKAGE_VERSION
docker build -t asimov-deploy/asimov-deploy:$PACKAGE_VERSION .<commit_msg>Only build a build-container and run tests using the build-container script<commit_after>#!/bin/bash
rm -rf docker-build

docker build -t asimov-deploy/asimov-deploy:build . -f Dockerfile.build
docker run --rm asimov-deploy/asimov-deploy:build
docker create --name extract asimov-deploy/asimov-deploy:build

mkdir -p docker-build/dist/release
docker cp extract:/asimov-deploy/dist/release ./docker-build/dist
docker rm -f extract

cp -r app docker-build
mkdir -p docker-build/public && cp -r public/img docker-build/public
cp -r views docker-build
cp -r library-licenses docker-build
cp package.json docker-build
cp server.js docker-build
cp LICENSE docker-build
cp NOTICE docker-build
{'fraction_non_alphanumeric': 0.11344805608667942, 'fraction_numerical': 0.0006373486297004461, 'mean_word_length': 4.286195286195286, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3341970', 'n_tokens_mistral': 579, 'n_tokens_neox': 508, 'n_words': 150}