<commit_before>version: v3
base: docker-registry.wikimedia.org/nodejs-slim
lives:
  in: /srv/service
runs:
  environment: { APP_BASE_PATH: /srv/service }

variants:
  build:
    base: docker-registry.wikimedia.org/nodejs-devel
    apt: { packages: [git, python-pkgconfig, build-essential] }
    node: { requirements: [package.json]}
    runs: { environment: { LINK: g++ } }
  development:
    includes: [build]
    entrypoint: [node, server.js]
  test:
    includes: [build]
    entrypoint: [npm, test]
    runs: { insecurely: true }
  prep:
    includes: [build]
    node: { env: production }
  production:
    copies: prep
    node: { env: production }
    entrypoint: [node, server.js]<commit_msg>Add ca-certificates package to production<commit_after>version: v3
base: docker-registry.wikimedia.org/nodejs-slim
lives:
  in: /srv/service
runs:
  environment: { APP_BASE_PATH: /srv/service }

variants:
  build:
    base: docker-registry.wikimedia.org/nodejs-devel
    apt: { packages: [git, python-pkgconfig, build-essential] }
    node: { requirements: [package.json]}
    runs: { environment: { LINK: g++ } }
  development:
    includes: [build]
    entrypoint: [node, server.js]
  test:
    includes: [build]
    entrypoint: [npm, test]
    runs: { insecurely: true }
  prep:
    includes: [build]
    node: { env: production }
  production:
    copies: prep
    node: { env: production }
    apt: { packages: [ca-certificates] }
    entrypoint: [node, server.js]
{'fraction_non_alphanumeric': 0.134785568413887, 'fraction_numerical': 0.0013614703880190605, 'mean_word_length': 3.3491124260355027, 'pattern_counts': {'":': 0, '<': 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': '7182789', 'n_tokens_mistral': 515, 'n_tokens_neox': 506, 'n_words': 120}