<commit_before>FROM debian:stretch-slim

LABEL maintainer="<EMAIL>"
LABEL version="1.0"
LABEL description="Run LinuxFr.org Ruby on Rails website"

WORKDIR /linuxfr.org

# Install system dependencies
RUN echo 'deb http://deb.debian.org/debian stretch-backports main' >> '/etc/apt/sources.list.d/linuxfr.list' \
  && apt-get update \
  && apt-get install -y --no-install-recommends \
    mysql-client libmysql++-dev git \
    build-essential openssl libreadline-dev curl libcurl4-openssl-dev zlib1g \
    zlib1g-dev libssl-dev libxml2-dev libxslt-dev autoconf libgmp-dev libyaml-dev \
    ncurses-dev bison automake libtool imagemagick libc6-dev hunspell \
    hunspell-fr-comprehensive ruby ruby-dev ruby-rack \
  && apt-get install -t stretch-backports -y --no-install-recommends \
    nodejs npm \
  && gem install bundler -v 1.17.3 \
  && apt-get clean

RUN mkdir /home/linuxfr.org
ENV HOME /home/linuxfr.org

# Install node external dependencies
COPY package*.json ./
# Note: should use `npm ci`, but it freezes while running, that's strange
RUN npm install --prod

# Install external dependencies
COPY Gemfile* ./<commit_msg>Dockerfile uses npm ci to be able to lint and prettier css<commit_after>FROM debian:stretch-slim

LABEL maintainer="<EMAIL>"
LABEL version="1.0"
LABEL description="Run LinuxFr.org Ruby on Rails website"

WORKDIR /linuxfr.org

# Install system dependencies
RUN echo 'deb http://deb.debian.org/debian stretch-backports main' >> '/etc/apt/sources.list.d/linuxfr.list' \
  && apt-get update \
  && apt-get install -y --no-install-recommends \
    mysql-client libmysql++-dev git \
    build-essential openssl libreadline-dev curl libcurl4-openssl-dev zlib1g \
    zlib1g-dev libssl-dev libxml2-dev libxslt-dev autoconf libgmp-dev libyaml-dev \
    ncurses-dev bison automake libtool imagemagick libc6-dev hunspell \
    hunspell-fr-comprehensive ruby ruby-dev ruby-rack \
  && apt-get install -t stretch-backports -y --no-install-recommends \
    nodejs npm \
  && gem install bundler -v 1.17.3 \
  && apt-get clean

RUN mkdir /home/linuxfr.org
ENV HOME /home/linuxfr.org

# Install node external dependencies
COPY package*.json ./
RUN npm ci

# Install external dependencies
COPY Gemfile* ./
{'fraction_non_alphanumeric': 0.10870545782589085, 'fraction_numerical': 0.009923319801533603, 'mean_word_length': 3.526530612244898, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4207384', 'n_tokens_mistral': 776, 'n_tokens_neox': 738, 'n_words': 210}