From 72f851d5fb30b53591f0ef4a3ae7ddab0a85e7db Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Tue, 22 Nov 2022 14:30:36 +0100 Subject: [PATCH] Dockerfile update --- Sources/dafl_project_flutter/lib/position/location.dart | 2 +- Sources/php_script/Dockerfile | 2 -- Sources/php_script/script/index.php | 5 ----- 3 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 Sources/php_script/script/index.php diff --git a/Sources/dafl_project_flutter/lib/position/location.dart b/Sources/dafl_project_flutter/lib/position/location.dart index 0171c7f..2c49370 100644 --- a/Sources/dafl_project_flutter/lib/position/location.dart +++ b/Sources/dafl_project_flutter/lib/position/location.dart @@ -31,7 +31,7 @@ class Location { static Future> getData() async { Map spot = {}; String actualUser = MyApp.controller.currentUser.usernameDafl; - Uri uri = Uri.parse("codefirst.iut.uca.fr/dorian.hodin/dafl_music:latest/distance.php"); + Uri uri = Uri.parse("https://codefirst.iut.uca.fr/dorian.hodin/dafl_music:latest"); http.Response response = await http.post(uri, body: { "id": actualUser, }); diff --git a/Sources/php_script/Dockerfile b/Sources/php_script/Dockerfile index f9ac454..28adde7 100644 --- a/Sources/php_script/Dockerfile +++ b/Sources/php_script/Dockerfile @@ -1,4 +1,2 @@ FROM php:8.1-cli -COPY . ./script/ -WORKDIR ./script/ CMD ./script/distance.php \ No newline at end of file diff --git a/Sources/php_script/script/index.php b/Sources/php_script/script/index.php deleted file mode 100644 index c06e1d3..0000000 --- a/Sources/php_script/script/index.php +++ /dev/null @@ -1,5 +0,0 @@ -Hello Dafldev - -?>