I'm trying to run that app inside a docker container but I'm getting an error.
My dockerfile:
FROM php:7.2.7-apache
# SERVICE php application
RUN apt-get update
RUN apt-get install -y mysql-client
ENV DEBIAN_FRONTEND noninteractive
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY css /var/www/html/css
COPY img /var/www/html/img
COPY includes /var/www/html/includes
COPY js /var/www/html/js
COPY node_modules /var/www/html/node_modules
COPY index.html package.json todo.php /var/www/html/
RUN docker-php-ext-install mbstring pdo pdo_mysql mysqli
RUN chown -R www-data:www-data /var/www/html \
&& a2enmod rewrite
It's enabled to store data in mysql and all others changes that you mentioned in README.
root@todo:/var/www/html/includes# php dump-sql.php
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/includes/mysql-db.php:99
Stack trace:
#0 /var/www/html/includes/dump-sql.php(21): MySqlDatabase->connect('db', 'root', 'root', 'todo')
#1 {main}
thrown in /var/www/html/includes/mysql-db.php on line 99
I'm trying to run that app inside a docker container but I'm getting an error.
My dockerfile:
It's enabled to store data in mysql and all others changes that you mentioned in README.
Same via browser.