<commit_before># Use osixia/light-baseimage
# sources: https://github.com/osixia/docker-light-baseimage
FROM osixia/light-baseimage:0.2.6
MAINTAINER <NAME> <<EMAIL>>

# Keepalived version
ENV KEEPALIVED_VERSION 1.3.0

# Download, build and install Keepalived
RUN apt-get -y update \
    && LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
       curl \
       gcc \
       libnl-3-dev \
       libnl-genl-3-dev \
       libnl-route-3-dev \
       libnfnetlink \
       libssl-dev \
       make \
       pkg-config \
    && curl -o keepalived.tar.gz -SL http://keepalived.org/software/keepalived-${KEEPALIVED_VERSION}.tar.gz \
    && mkdir -p /container/keepalived-sources \
    && tar -xzf keepalived.tar.gz --strip 1 -C /container/keepalived-sources \
    && cd container/keepalived-sources \
    && ./configure --with-kernel-dir=/lib/modules/$(uname -r)/build \
    && make && make install \
    && cd - && mkdir -p /etc/keepalived \
    && apt-get remove -y --purge --auto-remove curl make gcc pkg-config libssl-dev \
    && rm -f keepalived.tar.gz \
    && rm -rf /container/keepalived-sources \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Add service directory to /container/service
ADD service /container/service

# Use baseimage install-service script
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service<commit_msg>libnfnetlink-dev<commit_after># Use osixia/light-baseimage
# sources: https://github.com/osixia/docker-light-baseimage
FROM osixia/light-baseimage:0.2.6
MAINTAINER <NAME> <<EMAIL>>

# Keepalived version
ENV KEEPALIVED_VERSION 1.3.0

# Download, build and install Keepalived
RUN apt-get -y update \
    && LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
       curl \
       gcc \
       libnl-3-dev \
       libnl-genl-3-dev \
       libnl-route-3-dev \
       libnfnetlink-dev \
       libssl-dev \
       make \
       pkg-config \
    && curl -o keepalived.tar.gz -SL http://keepalived.org/software/keepalived-${KEEPALIVED_VERSION}.tar.gz \
    && mkdir -p /container/keepalived-sources \
    && tar -xzf keepalived.tar.gz --strip 1 -C /container/keepalived-sources \
    && cd container/keepalived-sources \
    && ./configure --with-kernel-dir=/lib/modules/$(uname -r)/build \
    && make && make install \
    && cd - && mkdir -p /etc/keepalived \
    && apt-get remove -y --purge --auto-remove curl make gcc pkg-config libssl-dev \
    && rm -f keepalived.tar.gz \
    && rm -rf /container/keepalived-sources \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Add service directory to /container/service
ADD service /container/service

# Use baseimage install-service script
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service
{'fraction_non_alphanumeric': 0.1449982572324852, 'fraction_numerical': 0.006971070059254096, 'mean_word_length': 2.5128518971848224, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4845334', 'n_tokens_mistral': 1032, 'n_tokens_neox': 1003, 'n_words': 203}