From c95c1f83ed6d97f6786489b1f8d300c433506e0c Mon Sep 17 00:00:00 2001 From: PyRowMan <> Date: Fri, 27 Dec 2024 01:18:38 +0100 Subject: [PATCH] Update Dockerfile to use dynamic APP_PORT for server configuration --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b618848fc..41f2f903d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM composer:latest AS composer-base FROM dunglas/frankenphp:1-php8.3 LABEL maintainer="PyRowMan" -ENV SERVER_NAME=:80 +ENV SERVER_NAME=:${APP_PORT:-80} ARG MYSQL_CLIENT="mariadb-client" ARG SEVENZIP_VERSION=2407 @@ -65,7 +65,7 @@ RUN chmod -R 777 /app/storage/ RUN chmod -R 777 /app/resources/ RUN chmod -R 777 /app/public/ -EXPOSE 80 +EXPOSE ${APP_PORT:-80} CMD ["--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"] ENTRYPOINT ["docker-entrypoint"]