<commit_before>FROM debian:9.5

RUN apt-get update && apt-get install -y \
    make cmake \
    g++ \
    pkg-config \
    libcurl4-openssl-dev \
    zlibc zlib1g zlib1g-dev \
    libpng-dev \
    default-libmysqlclient-dev
    
RUN apt-get install -y libqt5sql5-mysql libqt5websockets5 libqt5websockets5-dev \
    libwebsockets-dev make qt5-default qtchooser

# Fix for building on debian system (mysqlclient library)
RUN ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/mariadb.pc /usr/lib/x86_64-linux-gnu/pkgconfig/mysqlclient.pc

COPY ./fhq-server /root/sources
WORKDIR /root/sources
RUN ./clean.sh && ./build_simple.sh

FROM debian:9.5

LABEL "maintainer"="FreeHackQuest Team <<EMAIL>>"
LABEL "repository"="https://github.com/freehackquest/fhq-server"

EXPOSE 1234 4613
COPY --from=0 /root/sources/fhq-server /usr/bin/fhq-server

RUN mkdir -p /usr/share/fhq-server/public/games 
RUN mkdir -p /var/log/fhq-server

RUN apt-get update && apt-get install -y libcurl3 zlibc zlib1g libpng16-16 libmariadbclient18

RUN apt-get install -y libqt5sql5-mysql
RUN apt-get install -y libqt5websockets5

# RUN apt-get install -y qt5-default qtchooser \

RUN apt-get clean

CMD fhq-server start<commit_msg>Fixed problem with send mail from server<commit_after>FROM debian:9.5

# basic libs

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    make cmake \
    g++ \
    pkg-config \
    libcurl4-openssl-dev \
    zlibc zlib1g zlib1g-dev \
    libpng-dev \
    default-libmysqlclient-dev \ 
    libwebsockets-dev \
    apt-utils

# install qt5\

RUN apt-get install -y \
    libqt5sql5-mysql \
    libqt5websockets5 \
    libqt5websockets5-dev \
    qt5-default \
    qtchooser

# Fix for building on debian system (mysqlclient library)
RUN ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/mariadb.pc /usr/lib/x86_64-linux-gnu/pkgconfig/mysqlclient.pc

COPY ./fhq-server /root/sources
WORKDIR /root/sources
RUN ./clean.sh && ./build_simple.sh

FROM debian:9.5

LABEL "maintainer"="FreeHackQuest Team <<EMAIL>>"
LABEL "repository"="https://github.com/freehackquest/fhq-server"

EXPOSE 1234 4613
COPY --from=0 /root/sources/fhq-server /usr/bin/fhq-server

RUN mkdir -p /usr/share/fhq-server/public/games 
RUN mkdir -p /var/log/fhq-server

RUN apt-get update && \
    apt-get install -y \
    libcurl3 \
    zlibc \
    zlib1g \
    libpng16-16 \
    libmariadbclient18 \
    libpthread-stubs0-dev \
    locales

# RUN locale-gen en_US.UTF-8
RUN sed -i -e "s/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/" /etc/locale.gen && \
    echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \
    dpkg-reconfigure --frontend=noninteractive locales && \
    update-locale LANG=en_US.UTF-8
# RUN update-locale LANG=en_US.UTF-8

RUN apt-get install -y \
    libqt5sql5-mysql \
    libqt5websockets5 \
    libqt5core5a \
    libqt5concurrent5

# RUN apt-get install -y qt5-default qtchooser \

RUN apt-get clean

CMD fhq-server start
{'fraction_non_alphanumeric': 0.11855670103092783, 'fraction_numerical': 0.03505154639175258, 'mean_word_length': 2.9021447721179623, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '2160505', 'n_tokens_mistral': 1204, 'n_tokens_neox': 1124, 'n_words': 244}