<commit_before>FROM i386/debian:buster-slim
RUN echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/30install-suggests \
    && echo 'APT::Install-Recommends "false";' >> /etc/apt/apt.conf.d/30install-suggests \
    && apt-get update -y

RUN apt-get install -y wine
RUN apt-get install -y make

# workdaround required for jdk
RUN mkdir -p /usr/share/man/man1
RUN apt-get install -y openjdk-11-jdk-headless

ADD . /sgdk
WORKDIR /sgdk
ADD https://raw.githubusercontent.com/Franticware/SGDK_wine/main/generate_wine.sh bin/generate_wine.sh
RUN cd bin && sh generate_wine.sh

ENV GDK=/sgdk
WORKDIR /src
ENTRYPOINT [ "make", "-f", "/sgdk/makefile_wine.gen" ]<commit_msg>docker: use commit id for the SGDK_wine script<commit_after>FROM i386/debian:buster-slim
RUN echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/30install-suggests \
    && echo 'APT::Install-Recommends "false";' >> /etc/apt/apt.conf.d/30install-suggests \
    && apt-get update -y

RUN apt-get install -y wine
RUN apt-get install -y make

# workdaround required for jdk
RUN mkdir -p /usr/share/man/man1
RUN apt-get install -y openjdk-11-jdk-headless

ADD . /sgdk
WORKDIR /sgdk

# Crudely get the script from github.
# This isn't very secure, but at least we use the commit hash.
# Ideally that repository should simply be merged into this one.
ADD https://raw.githubusercontent.com/Franticware/SGDK_wine/c8a580a06f20fb45f43a18b65849e318b5f1341e/generate_wine.sh bin/generate_wine.sh
RUN cd bin && sh generate_wine.sh

ENV GDK=/sgdk
WORKDIR /src
ENTRYPOINT [ "make", "-f", "/sgdk/makefile_wine.gen" ]
{'fraction_non_alphanumeric': 0.12958280657395702, 'fraction_numerical': 0.02970922882427307, 'mean_word_length': 4.025396825396825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2160568', 'n_tokens_mistral': 636, 'n_tokens_neox': 586, 'n_words': 149}