From 8a43358844f59271e0e84d4dbc0d94d7489dc31e 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 e91af1a..fd01eec 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"]