<commit_before># Original credit: https://github.com/jpetazzo/dockvpn

# Leaner build then Ubunutu
FROM alpine:3.2

MAINTAINER <NAME> <<EMAIL>>

RUN apk update && \
    apk add openvpn iptables curl bash && \
    rm -rf /tmp/* /var/tmp/* /var/cache/apk/*

RUN mkdir -p /usr/local/share/easy-rsa && cd /usr/local/share/easy-rsa && \
    curl -L https://github.com/OpenVPN/easy-rsa/archive/v3.0.0.tar.gz | tar xzf - easy-rsa-3.0.0/easyrsa3 && \
    mv easy-rsa-3.0.0/easyrsa3 . && rmdir easy-rsa-3.0.0 && \
    ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin

# Needed by scripts
ENV OPENVPN /etc/openvpn
ENV EASYRSA /usr/local/share/easy-rsa/easyrsa3
ENV EASYRSA_PKI $OPENVPN/pki
ENV EASYRSA_VARS_FILE $OPENVPN/vars

VOLUME ["/etc/openvpn"]

# Internally uses port 1194/udp, remap using `docker run -p 443:1194/tcp`
EXPOSE 1194/udp

WORKDIR /etc/openvpn
CMD ["ovpn_run"]

ADD ./bin /usr/local/bin
RUN chmod a+x /usr/local/bin/*<commit_msg>alpine: Use easy-rsa in testing branch of alpine<commit_after># Original credit: https://github.com/jpetazzo/dockvpn

# Leaner build then Ubuntu
FROM alpine:3.2

MAINTAINER <NAME> <<EMAIL>>

RUN echo "http://dl-4.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
    apk add --update openvpn iptables bash easy-rsa && \
    ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
    rm -rf /tmp/* /var/tmp/* /var/cache/apk/*

# Needed by scripts
ENV OPENVPN /etc/openvpn
ENV EASYRSA /usr/share/easy-rsa
ENV EASYRSA_PKI $OPENVPN/pki
ENV EASYRSA_VARS_FILE $OPENVPN/vars

VOLUME ["/etc/openvpn"]

# Internally uses port 1194/udp, remap using `docker run -p 443:1194/tcp`
EXPOSE 1194/udp

WORKDIR /etc/openvpn
CMD ["ovpn_run"]

ADD ./bin /usr/local/bin
RUN chmod a+x /usr/local/bin/*
{'fraction_non_alphanumeric': 0.152, 'fraction_numerical': 0.029142857142857144, 'mean_word_length': 3.2603406326034063, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 3, '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': '6973865', 'n_tokens_mistral': 811, 'n_tokens_neox': 743, 'n_words': 166}