<commit_before># For details and docs - see https://github.com/phusion/baseimage-docker#getting_started
FROM phusion/baseimage:0.9.16

# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]

RUN apt-get update

# Calico (for ACL Manager)
RUN apt-get install -y python-zmq iptables ipset curl
RUN curl -L http://binaries.projectcalico.org/repo/key | apt-key add -
RUN echo "deb http://binaries.projectcalico.org/repo ./" >> /etc/apt/sources.list
RUN echo "Package: *" >> /etc/apt/preferences
RUN echo "Pin: origin binaries.projectcalico.org" >> /etc/apt/preferences
RUN echo "Pin-Priority: 1001" >> /etc/apt/preferences
RUN apt-get update
RUN apt-get dist-upgrade -y
RUN apt-get install -y calico-felix calico-acl-manager
RUN mkdir /etc/service/aclmanager
ADD aclmanager.sh /etc/service/aclmanager/run

# Confd
RUN curl -L https://github.com/kelseyhightower/confd/releases/download/v0.7.1/confd-0.7.1-linux-amd64 -o confd
RUN chmod +x confd
RUN mkdir /etc/service/confd
ADD confd.sh /etc/service/confd/run

# Plugin
RUN apt-get -qy install python-zmq python-pip python-dev python-pyasn1 libffi-dev libssl-dev python-docopt
ADD plugin.py plugin.py
RUN pip install python-etcd
RUN mkdir /etc/service/pluginnetwork
ADD plugin_network.sh /etc/service/pluginnetwork/run
RUN mkdir /etc/service/pluginendpoint
ADD plugin_endpoint.sh /etc/service/pluginendpoint/run

ADD rc.local /etc/rc.local
ADD conf.d conf.d
ADD templates templates
RUN mkdir -p /config/data
RUN mkdir -p /var/log/calico

# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*<commit_msg>Reorder Dockerfile for rebuild speed<commit_after># For details and docs - see https://github.com/phusion/baseimage-docker#getting_started
FROM phusion/baseimage:0.9.16

# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]

RUN apt-get update

# Calico (for ACL Manager)
RUN apt-get install -y python-zmq iptables ipset curl
RUN curl -L http://binaries.projectcalico.org/repo/key | apt-key add -
RUN echo "deb http://binaries.projectcalico.org/repo ./" >> /etc/apt/sources.list
RUN echo "Package: *" >> /etc/apt/preferences
RUN echo "Pin: origin binaries.projectcalico.org" >> /etc/apt/preferences
RUN echo "Pin-Priority: 1001" >> /etc/apt/preferences
RUN apt-get update
RUN apt-get dist-upgrade -y
RUN apt-get install -y calico-felix calico-acl-manager
RUN mkdir /etc/service/aclmanager
ADD aclmanager.sh /etc/service/aclmanager/run

# Confd
RUN curl -L https://github.com/kelseyhightower/confd/releases/download/v0.7.1/confd-0.7.1-linux-amd64 -o confd
RUN chmod +x confd
RUN mkdir /etc/service/confd
ADD confd.sh /etc/service/confd/run

# Plugin
RUN apt-get -qy install python-zmq python-pip python-dev python-pyasn1 libffi-dev libssl-dev python-docopt
RUN pip install python-etcd
ADD plugin.py plugin.py
RUN mkdir /etc/service/pluginnetwork
ADD plugin_network.sh /etc/service/pluginnetwork/run
RUN mkdir /etc/service/pluginendpoint
ADD plugin_endpoint.sh /etc/service/pluginendpoint/run

ADD rc.local /etc/rc.local
ADD conf.d conf.d
ADD templates templates
RUN mkdir -p /config/data
RUN mkdir -p /var/log/calico

# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
{'fraction_non_alphanumeric': 0.12223261615216713, 'fraction_numerical': 0.010601808543810414, 'mean_word_length': 3.958268933539413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1021813', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1130, 'n_words': 309}