diff --git a/Dockerfile b/Dockerfile index 58a9ad4..f0caf2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,5 @@ COPY ./docker/nginx.conf /etc/nginx/nginx.conf COPY ./upload.php /tmp/upload.php COPY ./docker/start.sh /start.sh -# Start php dependencies -RUN service php8.1-fpm start - # Start server CMD ["bash", "/start.sh"] \ No newline at end of file diff --git a/docker/start.sh b/docker/start.sh index 7167f2a..e012332 100644 --- a/docker/start.sh +++ b/docker/start.sh @@ -6,6 +6,10 @@ else echo "Upload script was not found, copying it." fi +# Start php dep +echo "Starting PHP" +service php8.1-fpm start + # Start Nginx echo "Starting Nginx" nginx -g "daemon off;" \ No newline at end of file