Não consigo fazer o build | Fórum | School of Net

Deseja poder participar de nosso fórum e tirar todas as suas dúvidas?
Clique aqui e assine nosso plano de acesso ilimitado. Saiba mais.

por Marcelo

2 semanas, 2 dias atrás Marcelo

Não consigo fazer o build

Segui os passos conforme orientado no curso até agora porém ao buildar a imagem aparece o seguinte erro: ``` #10 1.149 Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages: #10 1.149 error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in Command line code on line 1 #10 1.150 #10 1.150 Warning: copy(): Failed to enable crypto in Command line code on line 1 #10 1.153 #10 1.153 Warning: copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1 #10 1.284 #10 1.284 Warning: hash_file(composer-setup.php): failed to open stream: No such file or directory in Command line code on line 1 #10 1.285 Installer corrupt #10 1.285 Warning: unlink(composer-setup.php): No such file or directory in Command line code on line 1 #10 1.285 #10 1.391 Could not open input file: composer-setup.php ``` Este aqui é o meu Dockerfile ``` FROM shakyshane/laravel-php:latest COPY composer.lock composer.json /var/www COPY database /var/www/database WORKDIR /var/www/ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ && php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \ && php composer-setup.php \ && php -r "unlink('composer-setup.php');" \ && php compose.phar install --no-dev --no-scripts \ && rm compose.phar COPY . /var/www RUN chown -R www-data:www-data \ /var/www/storage \ /var/www/bootstrap/cache RUN php artisan key:generate RUN php artisan config:cache RUN php artisan optimize ``` Estou procurando como resolver na internet mas estou com bastante dificuldade

1 Respostas