From 25b650610ea24debd6fd39fa0f79501fadad3c40 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Sat, 26 Nov 2022 16:07:02 +0100 Subject: [PATCH] Dockerfile update --- Sources/db_script/Dockerfile | 3 ++- Sources/php_script/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/db_script/Dockerfile b/Sources/db_script/Dockerfile index 87cc645..4ddc946 100644 --- a/Sources/db_script/Dockerfile +++ b/Sources/db_script/Dockerfile @@ -1,4 +1,5 @@ FROM mcr.microsoft.com/mssql/server:2022-latest +USER root RUN apt-get update && apt-get upgrade -y -COPY ./sql /var/www/html +COPY ./sql /var/lib/mysql CMD ./sql/create.sql \ No newline at end of file diff --git a/Sources/php_script/Dockerfile b/Sources/php_script/Dockerfile index aa601a1..31a3d12 100644 --- a/Sources/php_script/Dockerfile +++ b/Sources/php_script/Dockerfile @@ -1,4 +1,4 @@ FROM php:8.1-apache -RUN apt-get update && apt-get upgrade -y +RUN apt-get update && apt-get upgrade -y RUN docker-php-ext-install mysqli COPY ./script /var/www/html