From fc644e940dbe81c18de2ac01803cd01745dd5e3e Mon Sep 17 00:00:00 2001 From: Creling <43109504+Creling@users.noreply.github.com> Date: Tue, 5 Sep 2023 17:10:36 +0800 Subject: [PATCH] fix: change the EXPOSE port to ${WEB_PORT} the container should EXPOSE port WEB_PORT instead of port 80 from the php:8.1-apache --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index e91af1a6..fd01eecc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,7 @@ COPY entrypoint.sh / WORKDIR /var/www/html/ VOLUME /var/www/html ENV WEB_PORT 8089 +EXPOSE ${WEB_PORT} RUN chmod a+x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] CMD ["apachectl","-D","FOREGROUND"]