From 40e058a32a6e73e0afab55889302956ebf12d459 Mon Sep 17 00:00:00 2001 From: throwaway Date: Wed, 23 Aug 2023 18:31:08 -0500 Subject: Add Dockerfile and docker entrypoint (#5) Add Dockerfile and docker entrypoint Co-authored-by: lolcat Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/5 Co-authored-by: throwaway Co-committed-by: throwaway --- docker/docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 docker/docker-entrypoint.sh (limited to 'docker/docker-entrypoint.sh') diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh new file mode 100755 index 0000000..469f810 --- /dev/null +++ b/docker/docker-entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/sh +sed -i "s/ServerName.*/ServerName ${FOURGET_SERVER_NAME}/g" /etc/apache2/httpd.conf +sed -i "s/ServerAdmin.*/ServerAdmin ${FOURGET_SERVER_ADMIN_EMAIL}/g" /etc/apache2/httpd.conf +httpd -DFOREGROUND -- cgit v1.2.3