おきている問題
Dockerfile
にて、RUN apt-get install npm
がエラーにより実行されません。
エラー内容は以下
E: Unable to locate package npm ERROR: Service 'web' failed to build: The command '/bin/sh -c apt-get install -y npm' returned a non-zero code: 100
Dockerfile
の中身は以下です。
yaml
1FROM php:7.1-fpm 2COPY php.ini /usr/local/etc/php/ 3 4# install composer 5RUN cd /usr/bin && curl -s http://getcomposer.org/installer | php && ln -s /usr/bin/composer.phar /usr/bin/composer 6 7# install packages 8RUN apt-get update 9RUN apt-get install -y gcc 10RUN apt-get install -y make 11RUN apt-get install -y libpng-dev 12RUN apt-get install -y git 13RUN apt-get install -y unzip 14RUN apt-get install -y vim 15RUN apt-get install -y libmcrypt-dev 16RUN apt-get install -y mysql-client 17 18RUN apt-get install -y npm 19RUN apt-get install -y docker-php-ext-install mcrypt pdo_mysql mysqli mbstring 20 21# install stable node and latest npm 22RUN npm install n -g 23RUN n stable 24RUN ln -sf /usr/local/bin/node /usr/bin/node 25RUN npm install npm@latest -g 26RUN apt-get purge -y nodejs npm 27 28# install xdebug 29RUN pecl install xdebug-2.5.5 && docker-php-ext-enable xdebug
こちら同様のエラーの遭遇された方はいますでしょうか?
一通りやってみたのですが、解決に至らず、質問させていただきました。
補足情報等必要でしたら、コメントお願いしますm(_ _)m
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/06/11 05:07