<commit_before>FROM php:5.4.41-apache

MAINTAINER <NAME> <<EMAIL>>

ENV PGUSER postgres
ENV ECCUBE_PATH /var/www/ec-cube

RUN apt-get update && apt-get install --no-install-recommends -y \
        git vim curl wget sudo libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libmcrypt-dev libxml2-dev libpq-dev libpq5 postgresql-client \
        && docker-php-ext-configure \
        gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
        && docker-php-ext-install \
        mbstring zip gd xml pdo pdo_pgsql soap \
        && rm -r /var/lib/apt/lists/*

RUN useradd -ms /bin/bash ${PGUSER}

RUN ls -lt ${PHP_INI_DIR}/conf.d/
COPY config/php.ini ${PHP_INI_DIR}/
RUN git clone https://github.com/EC-CUBE/ec-cube.git ${ECCUBE_PATH}
WORKDIR ${ECCUBE_PATH}
RUN chmod +x ${ECCUBE_PATH}/eccube_install.sh

RUN sed -i -e 's/DBSERVER/POSTGRES_PORT_5432_TCP_ADDR/g' eccube_install.sh
RUN sed -i -e "s|/var/www/html|${ECCUBE_PATH}/html|g" /etc/apache2/apache2.conf

CMD ./eccube_install.sh pgsql && apache2-foreground

<commit_msg>fixed Dockerfile<commit_after>FROM php:5.4.41-apache

MAINTAINER <NAME> <<EMAIL>>

ENV PGUSER postgres
ENV ECCUBE_PATH /var/www/ec-cube

ENV ECCUBE_BRANCHE eccube-3.0.0-dev

RUN apt-get update && apt-get install --no-install-recommends -y \
        git vim curl wget sudo libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libmcrypt-dev libxml2-dev libpq-dev libpq5 postgresql-client \
        && docker-php-ext-configure \
        gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
        && docker-php-ext-install \
        mbstring zip gd xml pdo pdo_pgsql soap \
        && rm -r /var/lib/apt/lists/*

RUN useradd -ms /bin/bash ${PGUSER}

RUN ls -lt ${PHP_INI_DIR}/conf.d/
COPY config/php.ini ${PHP_INI_DIR}/

RUN git clone -b ${ECCUBE_BRANCHE} https://github.com/EC-CUBE/ec-cube.git ${ECCUBE_PATH}

RUN sed -i -e 's/^DBSERVER.*/DBSERVER=${POSTGRES_PORT_5432_TCP_ADDR}/g' ${ECCUBE_PATH}/eccube_install.sh
RUN echo "chown -R www-data:www-data ${ECCUBE_PATH}" >> ${ECCUBE_PATH}/eccube_install.sh
RUN sed -i -e "s|/var/www/html|${ECCUBE_PATH}/html|g" /etc/apache2/apache2.conf
RUN chmod +x ${ECCUBE_PATH}/eccube_install.sh
RUN ls -lt ${ECCUBE_PATH}/

WORKDIR ${ECCUBE_PATH}
EXPOSE 80

CMD ./eccube_install.sh pgsql && apache2-foreground


{'fraction_non_alphanumeric': 0.1454070526774053, 'fraction_numerical': 0.01610796691336526, 'mean_word_length': 3.3358490566037737, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, 'xml': 4}, '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': '2032362', 'n_tokens_mistral': 992, 'n_tokens_neox': 946, 'n_words': 189}