From ffa28f0505ef02a61c1da3abf467256d4f154ff0 Mon Sep 17 00:00:00 2001 From: jbergner Date: Tue, 15 Apr 2025 12:18:16 +0000 Subject: [PATCH] Dockerfile_Ubuntu aktualisiert --- Dockerfile_Ubuntu | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile_Ubuntu b/Dockerfile_Ubuntu index bce110d..d73554c 100644 --- a/Dockerfile_Ubuntu +++ b/Dockerfile_Ubuntu @@ -9,9 +9,17 @@ RUN mkdir -p /var/run/php RUN groupadd -g 1001 swarmdocker RUN useradd -u 3041 -g swarmdocker -s /bin/bash -m phpitop RUN useradd -u 3040 -g swarmdocker -s /bin/bash -m nginxitop +RUN echo "\ + #!/bin/sh\n\ + echo \"Starting services...\"\n\ + service php8.2-fpm start\n\ + nginx -g \"daemon off;\" &\n\ + echo \"Ready.\"\n\ + tail -s 1 /var/log/nginx/*.log -f\n\ + " > /start.sh EXPOSE 80 EXPOSE 443 EXPOSE 6379 EXPOSE 9000 STOPSIGNAL SIGTERM -CMD bash -c "php-fpm && nginx -g 'daemon off;' && redis-server /etc/redis/redis.conf" \ No newline at end of file +CMD ["sh", "/start.sh"] \ No newline at end of file