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