<commit_before>FROM debian:wheezy
MAINTAINER <NAME> <<EMAIL>>

COPY . /opt/redash/current/

# Install dependencies
WORKDIR /opt/redash/current
RUN bash setup/bootstrap_docker.sh

# Build frontend sources
WORKDIR /opt/redash/current/rd_ui
USER redash
RUN mkdir -p /opt/redash/.npm/node_modules
RUN npm config set prefix /opt/redash/.npm/node_modules
RUN npm install -g bower
RUN npm install -g grunt-cli
RUN npm install
RUN /opt/redash/.npm/node_modules/bin/bower install
RUN /opt/redash/.npm/node_modules/bin/grunt build

# Reset working directory and user for future `docker attach` sessions
WORKDIR /opt/redash/current
USER root<commit_msg>Add CMD to start service since docker doesn't support init scripts<commit_after>FROM debian:wheezy
MAINTAINER <NAME> <<EMAIL>>

COPY . /opt/redash/current/

# Install dependencies
WORKDIR /opt/redash/current
RUN bash setup/bootstrap_docker.sh

# Build frontend sources
WORKDIR /opt/redash/current/rd_ui
USER redash
RUN mkdir -p /opt/redash/.npm/node_modules
RUN npm config set prefix /opt/redash/.npm/node_modules
RUN npm install -g bower
RUN npm install -g grunt-cli
RUN npm install
RUN /opt/redash/.npm/node_modules/bin/bower install
RUN /opt/redash/.npm/node_modules/bin/grunt build

# Reset working directory and user for future `docker attach` sessions
WORKDIR /opt/redash/current
USER root

CMD service redash_supervisord start
{'fraction_non_alphanumeric': 0.088, 'fraction_numerical': 0.0, 'mean_word_length': 4.548387096774194, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7672839', 'n_tokens_mistral': 472, 'n_tokens_neox': 440, 'n_words': 141}