FROM apertium/apy:latest
RUN apt-get update && apt-get install -y wget unzip build-essential autoconf automake libtool pkg-config && \
    wget --no-check-certificate -O /tmp/master.zip https://github.com/loomchild/apertium-eng-rus/archive/refs/heads/master.zip && \
    cd /tmp && unzip master.zip && rm master.zip && \
    mv apertium-eng-rus-master apertium-eng-rus && \
    cd apertium-eng-rus && \
    ./autogen.sh && \
    make && \
    make install && \
    cd / && \
    apt-get remove -y wget unzip build-essential && apt-get autoremove -y && apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/apertium-eng-rus
ENV APY_LANGPAIRS="eng|rus rus|eng"
