<commit_before>#
# Example portainer Dockerfile template to build a docker image with the
# portainer source installed into /opt/portainer.
#

FROM ubuntu:12.04
MAINTAINER <NAME> <<EMAIL>>

REPOSITORY tarnfeld/portainer
BUILD_CPU 0.1
BUILD_MEM 512

# Install dependencies
RUN apt-get update && apt-get install -y build-essential git python-setuptools python-virtualenv

# Install the portainer source code
ADD ../ /opt/portainer

# Setup the python virtualenv
RUN cd /opt/portainer && bin/setup<commit_msg>Create and user a `portainer` user instead of root<commit_after>#
# Example portainer Dockerfile template to build a docker image with the
# portainer source installed into /opt/portainer.
#

FROM ubuntu:12.04
MAINTAINER <NAME> <<EMAIL>>

REPOSITORY tarnfeld/portainer
BUILD_CPU 0.1
BUILD_MEM 512

# Install dependencies
RUN apt-get update && apt-get install -y build-essential git python-setuptools python-virtualenv

# Create the portainer user
RUN useradd portainer

# Install the portainer source code
ADD ../ /opt/portainer

# Setup the python virtualenv
RUN chown -R portainer: /opt/portainer
USER portainer
RUN cd /opt/portainer && bin/setup
{'fraction_non_alphanumeric': 0.07712305025996534, 'fraction_numerical': 0.01559792027729636, 'mean_word_length': 4.661764705882353, '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': '2596048', 'n_tokens_mistral': 370, 'n_tokens_neox': 343, 'n_words': 131}