From 9f7d2dd03ff8369876b294481f10e7d6c402fc07 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Mon, 27 Mar 2023 15:29:21 +0200 Subject: [PATCH] Try to add Dockerfile to root --- .drone.yml | 2 +- Source/Dockerfile => Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename Source/Dockerfile => Dockerfile (82%) diff --git a/.drone.yml b/.drone.yml index df15d7b..476d0de 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: - name: image-app image: plugins/docker settings: - dockerfile: ./Source/Dockerfile + dockerfile: ./Dockerfile context: Source/ registry: hub.codefirst.iut.uca.fr repo: hub.codefirst.iut.uca.fr/dorian.hodin/sae4.01_formulaire diff --git a/Source/Dockerfile b/Dockerfile similarity index 82% rename from Source/Dockerfile rename to Dockerfile index 50483f5..29dd956 100644 --- a/Source/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM php:8.1-apache RUN apt-get update && apt-get install -y git zip -COPY . /var/www/html -WORKDIR /var/www/html/Config +COPY ./Source /var/www/html +WORKDIR /var/www/html/Source/Config RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer RUN composer update && composer install RUN a2enmod rewrite