コンテナを起動する際に、Autoprefixer doesn’t support Node v4.8.2. Update it. という警告文がでたので、色々調べたところ、
dockerfileに "curl -sL https://deb.nodesource.com/setup_10.x | bash -"を追加することで解決するという記事を拝見したのですが、何度試してもエラーになります。
dockerfile FROM ruby:2.5.1 RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ &&apt-get update && \ apt-get install -y mysql-client nodejs vim --no-install-recommends && \ rm -rf /var/lib/apt/lists/* 中略
エラーコード + apt-get update Get:1 http://deb.debian.org/debian stretch InRelease [171 B] Err:1 http://deb.debian.org/debian stretch InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Get:2 http://security.debian.org/debian-security stretch/updates InRelease [193 B] Err:2 http://security.debian.org/debian-security stretch/updates InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Get:3 http://deb.debian.org/debian stretch-updates InRelease [179 B] Err:3 http://deb.debian.org/debian stretch-updates InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Fetched 543 B in 0s (2845 B/s) Reading package lists... E: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) E: Some index files failed to download. They have been ignored, or old ones used instead. Error executing command, exiting ERROR: Service 'app' failed to build: The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_10.x | bash - &&apt-get update && apt-get install -y mysql-client nodejs vim --no-install-recommends && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1
dockerfileの書き方が違っているのか、それとも追加するコードが間違えているのか分かりません。
どなたか、解決方法が分かる方、いらっしゃいませんか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。