Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
FROM composer AS vendor
COPY composer.json composer.json
COPY composer.lock composer.lock
RUN composer install \
--ignore-platform-reqs \
--no-interaction \
--no-plugins \
--no-scripts \
--prefer-dist

FROM php:7.2-apache
RUN apt-get update && apt-get -y install apt-utils nano libyaml-dev
RUN apt-get update && apt-get -y install apt-utils libyaml-dev
RUN docker-php-ext-install gettext
RUN pecl channel-update pecl.php.net && pecl install yaml-2.0.0 && docker-php-ext-enable yaml
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
COPY . /var/www/html/
COPY --from=vendor /app/vendor/ /var/www/html/vendor/

10 changes: 6 additions & 4 deletions bib.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php
error_reporting(E_ERROR);
define(NUMBER_LEVELS, 4);
define(IS_SHOW_EVIDENCE_TODO, false);
require __DIR__ . '/vendor/autoload.php';
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
define('NUMBER_LEVELS', 4);
define('IS_SHOW_EVIDENCE_TODO', false);

include_once "bib/parsedown/Parsedown.php";
function readCSV($filename, $delimiter)
{
if (!file_exists($filename) || !is_readable($filename))
Expand Down
20 changes: 0 additions & 20 deletions bib/parsedown/LICENSE.txt

This file was deleted.

Loading