<commit_before>FROM alpine:3.2

MAINTAINER <NAME> <<EMAIL>>

RUN echo 'http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
 && echo '@community http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
 && echo '@testing http://nl.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories

RUN apk add --update \
		curl \
		git \
		less \
		nodejs \
		openssh \
		perl \
		php-curl \
		php-json \
		php-openssl \
		php-phar \
		py-crypto \
		py-pip \
		ruby-bundler \
		sudo \
		tree \
		tzdata \
		unzip \
		vim \
		zsh \
 && rm -rf /var/cache/apk/*

ADD /DOCKER_VERSION /DOCKER_VERSION
ADD /install-scripts /scripts/install-scripts
RUN /scripts/install-scripts/docker.sh \
 && /scripts/install-scripts/git-perl.sh \
 && /scripts/install-scripts/php-composer.sh

ENV PATH /usr/local/node/bin:$PATH
RUN npm install -g \
		bower \
		ember-cli \
		dot-json

RUN pip install --no-cache-dir --upgrade --ignore-installed --force-reinstall pip \
 && pip install --no-cache-dir \
		docker-compose \
		fabric

RUN rm /etc/motd \
 && passwd root -d "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)" \
 && ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N "" -t rsa \
 && ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N "" -t dsa \
 && ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N "" -t ecdsa \
 && ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N "" -t ed25519 \
 && curl -L -o /tmp/oh-my-zsh.zip https://github.com/crobays/oh-my-zsh/archive/master.zip \
 && unzip /tmp/oh-my-zsh.zip -d /var/lib \
 && rm /tmp/oh-my-zsh.zip \
 && mv /var/lib/oh-my-zsh* /var/lib/oh-my-zsh

ENV USER=user \
	HOME=/workspace/home \
	EDITOR=vim \
	TIMEZONE=UTC \
	SSH_KEY=.ssh/workspace_rsa

EXPOSE 22
WORKDIR /workspace
ENTRYPOINT ["/entrypoint.sh"]
CMD ["start", "version", "help"]

ADD home-template /tmp/home-template
ADD entrypoint.sh /entrypoint.sh

RUN date +%s > /.build-time
<commit_msg>Have a valid workspace command<commit_after>FROM alpine:3.2

MAINTAINER <NAME> <<EMAIL>>

RUN echo 'http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
 && echo '@community http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
 && echo '@testing http://nl.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories

RUN apk add --update \
		curl \
		git \
		less \
		nodejs \
		openssh \
		perl \
		php-curl \
		php-json \
		php-openssl \
		php-phar \
		py-crypto \
		py-pip \
		ruby-bundler \
		sudo \
		tree \
		tzdata \
		unzip \
		vim \
		zsh \
 && rm -rf /var/cache/apk/*

ADD /DOCKER_VERSION /DOCKER_VERSION
ADD /install-scripts /scripts/install-scripts
RUN /scripts/install-scripts/docker.sh \
 && /scripts/install-scripts/git-perl.sh \
 && /scripts/install-scripts/php-composer.sh

ENV PATH /usr/local/node/bin:$PATH
RUN npm install -g \
		bower \
		ember-cli \
		dot-json

RUN pip install --no-cache-dir --upgrade --ignore-installed --force-reinstall pip \
 && pip install --no-cache-dir \
		docker-compose \
		fabric

RUN rm /etc/motd \
 && passwd root -d "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)" \
 && ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N "" -t rsa \
 && ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N "" -t dsa \
 && ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N "" -t ecdsa \
 && ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N "" -t ed25519 \
 && curl -L -o /tmp/oh-my-zsh.zip https://github.com/crobays/oh-my-zsh/archive/master.zip \
 && unzip /tmp/oh-my-zsh.zip -d /var/lib \
 && rm /tmp/oh-my-zsh.zip \
 && mv /var/lib/oh-my-zsh* /var/lib/oh-my-zsh

ENV USER=user \
	HOME=/workspace/home \
	EDITOR=vim \
	TIMEZONE=UTC \
	SSH_KEY=.ssh/workspace_rsa

EXPOSE 22
WORKDIR /workspace
ENTRYPOINT ["/entrypoint.sh"]
CMD ["start"]

ADD home-template /tmp/home-template
ADD entrypoint.sh /entrypoint.sh

RUN date +%s > /.build-time

{'fraction_non_alphanumeric': 0.17320774463631605, 'fraction_numerical': 0.009942438513867086, 'mean_word_length': 2.556279069767442, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, 'https://': 2, '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': '211730', 'n_tokens_mistral': 1731, 'n_tokens_neox': 1562, 'n_words': 316}