[AppRunner] Invalid start command

0

hello everyone,

I am facing a problem when deploying an application on Apprunner. I am a newbie to this service and I get the following error:

[AppRunner] Invalid start command. Update the start command you provided during the App Runner service configuration and re-try. - CannotStartContainerError: ResourceInitializationError: failed to create new container runtime task: failed to create shim task: failed to create task: rpc error: code = Unknown desc = failed to create init process I/O: 1 error occurred: * failed to start binary process: fork/exec /sbin/shim-loggers-for-containerd: argument list too long : unknown

the image is successfully extracted from the ECR, below is my Dockerfile, am I doing something wrong?

FROM php:7.4-apache

COPY docker/apache/shared/shortorangerdc.conf /etc/apache2/sites-enabled/shortorangerdc.conf
COPY ./docker/apache/shared/php.ini /usr/local/etc/php.ini
COPY ./docker/apache/shared/php.ini /usr/local/etc/php/php.ini

RUN curl -sS https://getcomposer.org/installer | php -- \
&& mv composer.phar /usr/local/bin/composer \
&& apt-get update -yq && apt-get install -y systemctl cron python3 libxml2-dev libpng-dev libjpeg-dev libfreetype-dev libwebp-dev zlib1g-dev libzip-dev librabbitmq-dev libssh-dev \
&& docker-php-ext-configure gd  --with-freetype --with-jpeg --with-webp \
&& pecl install amqp \
&& docker-php-ext-install -j$(nproc)  gd pdo pdo_mysql soap zip bcmath sockets \
&& docker-php-ext-enable amqp \
&& sed -i.bak "s/Listen 80/Listen 8080/g" "/etc/apache2/ports.conf" && sed -i.bak "s/Listen 443/Listen 8443/g" "/etc/apache2/ports.conf" \
&& a2enmod rewrite

RUN mkdir /var/www/shortorangerdc
WORKDIR /var/www/shortorangerdc
COPY composer.json .
RUN composer install

COPY . .
RUN chmod +x ./bin/console 
CMD ["apache2-foreground"]
ENTRYPOINT ["docker-php-entrypoint"]
EXPOSE 9091

please i need help.

thanks

asked a year ago114 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions