<commit_before>FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive
ARG REQ_PATH=./config/requirements

ENV LC_ALL=C.UTF-8
ENV SECRET_KEY="somethissecret"
ENV DB_HOST="lutrisdb"
ENV DJANGO_SETTINGS_MODULE="lutrisweb.settings.travis"

RUN apt-get update && apt-get install -y sudo build-essential git curl python3 \
    python3-pip python3-dev imagemagick libxml2-dev libxslt1-dev libssl-dev libffi-dev \
    libpq-dev libxml2-dev libjpeg-dev npm nodejs && apt-get clean && rm -rf /var/lib/apt/lists/*

COPY $REQ_PATH/travis.pip $REQ_PATH/base.pip /app/config/requirements/
WORKDIR /app/config/requirements
RUN pip3 install -r ./travis.pip --exists-action=w

COPY ./*.json ./.bowerrc ./Gruntfile.js /app/
WORKDIR /app
RUN npm install -g bower grunt-cli
RUN npm install && npm run setup

CMD python3 manage.py runserver 0.0.0.0:8000<commit_msg>Cleaned up travis.Dockerfile (npm tasks are handled by lutrisfrontend)<commit_after>FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive
ARG REQ_PATH=./config/requirements

ENV LC_ALL=C.UTF-8
ENV SECRET_KEY="somethissecret"
ENV DB_HOST="lutrisdb"
ENV DJANGO_SETTINGS_MODULE="lutrisweb.settings.travis"

RUN apt-get update && apt-get install -y sudo build-essential git curl python3 \
    python3-pip python3-dev imagemagick libxml2-dev libxslt1-dev libssl-dev libffi-dev \
    libpq-dev libxml2-dev libjpeg-dev && apt-get clean && rm -rf /var/lib/apt/lists/*

COPY $REQ_PATH/travis.pip $REQ_PATH/base.pip /app/config/requirements/
WORKDIR /app/config/requirements
RUN pip3 install -r ./travis.pip --exists-action=w

WORKDIR /app
CMD python3 manage.py runserver 0.0.0.0:8000
{'fraction_non_alphanumeric': 0.11069882498453927, 'fraction_numerical': 0.025974025974025976, 'mean_word_length': 4.357615894039735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, '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': '1631486', 'n_tokens_mistral': 644, 'n_tokens_neox': 603, 'n_words': 144}