From 1f4e42df13879ed50009e37d7ffa6a3f93df5826 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Mon, 30 Jan 2023 14:40:34 +0100 Subject: [PATCH] Dockerfile update, downloading driver (good command now) --- Source/API/Dockerfile | 2 +- Source/API/script/config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/API/Dockerfile b/Source/API/Dockerfile index 796e84e..13bd362 100644 --- a/Source/API/Dockerfile +++ b/Source/API/Dockerfile @@ -1,5 +1,5 @@ FROM php:8.1-apache RUN apt-get update && apt-get upgrade -y RUN docker-php-ext-install mysqli -RUN apt-get install php8.1-mysql +RUN apt-get install php8.0-mysql COPY ./script /var/www/html \ No newline at end of file diff --git a/Source/API/script/config.php b/Source/API/script/config.php index 8b1894c..40160c4 100644 --- a/Source/API/script/config.php +++ b/Source/API/script/config.php @@ -2,7 +2,7 @@ require_once "./Connection.php"; -$dsn = "mysql:host=codefirst.iut.uca.fr/containers/Temoignages-db_form;dbname=".$_ENV["DATABASE"].";"; +$dsn = "mysql:host=".$_ENV["HOST"].";dbname=".$_ENV["DATABASE"].";"; $login = $_ENV["USER"]; $password = $_ENV["PASSWORD"];