From 511cec3f7299b423d054fea11ccdb67b164c547a Mon Sep 17 00:00:00 2001
From: Valentin Wibaillie <wibaillievalentin@outlook.fr>
Date: Mon, 30 Jan 2023 15:34:58 +0100
Subject: [PATCH] entrypoint

---
 .docker-compose.yml.swp | Bin 1024 -> 0 bytes
 apachephp/Dockerfile    |   4 +++-
 apachephp/entrypoint.sh |   3 +++
 3 files changed, 6 insertions(+), 1 deletion(-)
 delete mode 100644 .docker-compose.yml.swp
 create mode 100755 apachephp/entrypoint.sh

diff --git a/.docker-compose.yml.swp b/.docker-compose.yml.swp
deleted file mode 100644
index b009180ab871066696f1c56291fbdfb8864d8084..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 1024
zcmYc?$V<%2S1{8vVn6}&SQr_~5_3}XN;30MB(QMGN|Q?SN=mWFpbDkrCugS?=_cpr
Y7UUPF>Q(0EpvsT(MnhmU1n3(A02+-EEdT%j

diff --git a/apachephp/Dockerfile b/apachephp/Dockerfile
index d70c1a7..1844860 100644
--- a/apachephp/Dockerfile
+++ b/apachephp/Dockerfile
@@ -1,2 +1,4 @@
 FROM php:7.2-apache
-RUN apt-get update && apt-get -y install cron
+RUN apt-get update && apt-get -y install cron && chmod 777 /var/www/html
+COPY entrypoint.sh /entrypoint
+ENTRYPOINT ["/entrypoint"]
diff --git a/apachephp/entrypoint.sh b/apachephp/entrypoint.sh
new file mode 100755
index 0000000..7626de4
--- /dev/null
+++ b/apachephp/entrypoint.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+chmod a+x /var/www/html/
+apache2ctl -DFOREGROUND
-- 
GitLab