fix(core): Clean up unnecessary files during application image build

This commit is contained in:
Andras Bacsai 2025-02-28 11:23:54 +01:00
parent 2f826c56e8
commit fb3f5e0a3e

View file

@ -2021,6 +2021,8 @@ private function build_image()
COPY . .
RUN rm -f /usr/share/nginx/html/nginx.conf
RUN rm -f /usr/share/nginx/html/Dockerfile
RUN rm -f /usr/share/nginx/html/docker-compose.yaml
RUN rm -f /usr/share/nginx/html/.env
COPY ./nginx.conf /etc/nginx/conf.d/default.conf");
if (str($this->application->custom_nginx_configuration)->isNotEmpty()) {
$nginx_config = base64_encode($this->application->custom_nginx_configuration);