<commit_before># WEBHOMEBANK
# Author: nanawel # nospam # at # gmail # dot # com
#
# BUILD
#   docker build -t webhomebank .
#
# (you need to run "composer install" first to install the dependencies, see README.md)
#
# RUN (interactive mode; use -d instead of -i to run as background daemon)
#   docker run -i -t --rm \
#          -p 49080:80 \                                                       # App will be available from host at localhost:49080
#          -v /home/myuser/mybudget.xhb:/var/www/html/data/userfile.xhb:ro \   # Replace first part with the path to your .xhb file
#          --name my-webhomebank \                                             # Name of the new container
#          --restart=always                                                    # (Optional) If you want the container to be restarted at each boot (when using -d)
#          webhomebank                                                         # Name of the image (above in the BUILD command)
#
# NOTICE: The .xhb file must be readable on the host by the UID the webserver of the container uses (www-data => UID 33).
#

FROM php:7.4-apache-buster

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get update && apt-get install --no-install-recommends -y \
    wget \
    bzip2 \
    unzip \
    git \
    libfreetype6-dev \
    libjpeg62-turbo-dev \
    libpng-dev \
    libicu-dev \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install -j$(nproc) gd intl

# Log Apache access and errors to STDOUT/STDERR
RUN ln -sf /dev/stdout /var/log/apache2/access.log \
 && ln -sf /dev/stderr /var/log/apache2/error.log

RUN a2enmod rewrite \
    deflate \
    expires

COPY resources/php.ini /usr/local/etc/php/conf.d/zz-webhomebank.ini
COPY src/ /var/www/html/

WORKDIR /var/www/html

RUN composer install
RUN mv -f /var/www/html/etc/local.ini.docker /var/www/html/etc/local.ini

RUN chown -R www-data /var/www \
 && chmod -R 775 /var/www

EXPOSE 80
<commit_msg>Update Dockerfile<commit_after># WEBHOMEBANK
# Author: nanawel # nospam # at # gmail # dot # com
#
# BUILD
#   docker build -t webhomebank .
#
# (you need to run "composer install" first to install the dependencies, see README.md)
#
# RUN (interactive mode; use -d instead of -i to run as background daemon)
#   docker run -i -t --rm \
#          -p 49080:80 \                                   # App will be available from host at localhost:49080
#          -v /home/myuser/mybudget.xhb:/budget.xhb:ro \   # Replace first part with the path to your .xhb file
#          --name my-webhomebank \                         # Name of the new container
#          --restart=always                                # (Optional) If you want the container to be restarted at each boot (when using -d)
#          webhomebank                                     # Name of the image (above in the BUILD command)
#
# NOTICE: The .xhb file must be readable on the host by the UID the webserver of the container uses (www-data => UID 33).
#

FROM php:7.4-apache-buster

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get update && apt-get install --no-install-recommends -y \
    wget \
    bzip2 \
    unzip \
    git \
    libfreetype6-dev \
    libjpeg62-turbo-dev \
    libpng-dev \
    libicu-dev \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install -j$(nproc) gd intl

# Log Apache access and errors to STDOUT/STDERR
RUN ln -sf /dev/stdout /var/log/apache2/access.log \
 && ln -sf /dev/stderr /var/log/apache2/error.log

RUN a2enmod rewrite \
    deflate \
    expires

COPY resources/php.ini /usr/local/etc/php/conf.d/zz-webhomebank.ini
COPY src/ /var/www/html/

WORKDIR /var/www/html

RUN composer install
RUN mv -f /var/www/html/etc/local.ini.docker /var/www/html/etc/local.ini

RUN chown -R www-data /var/www \
 && chmod -R 775 /var/www

EXPOSE 80

{'fraction_non_alphanumeric': 0.10928681375064135, 'fraction_numerical': 0.014366341713699333, 'mean_word_length': 1.9359939759036144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 15, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7602207', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1281, 'n_words': 403}