moul/docker-icecast

`docker build` fails

Closed this issue · 0 comments

The build fails due to apt -qq -y update not being executed due to a wild set at the start of the first RUN statement. As an extra apt reports not having a stable api so we should use apt-get instead.

host:~/code/docker-icecast$ sudo docker build -t moul/icecast .
Sending build context to Docker daemon  184.3kB
Step 1/9 : FROM debian:stable-slim
 ---> eb0fd6cc5570
Step 2/9 : MAINTAINER Manfred Touron "m@42.am"
 ---> Using cache
 ---> ff0503edc64b
Step 3/9 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> 8d29c21935a1
Step 4/9 : RUN set +   apt -qq -y update;   apt -qq -y full-upgrade;   apt -qq -y install icecast2 python-setuptools sudo cron-apt;   apt -y autoclean;   apt clean;   chown -R icecast2 /etc/icecast2;   sed -i 's/ -d//' /etc/cron-apt/action.d/3-download
 ---> Running in 8dd834f1f9c3

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: Unable to locate package icecast2
E: Unable to locate package python-setuptools
E: Unable to locate package sudo
E: Unable to locate package cron-apt

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

chown: invalid user: 'icecast2'
sed: can't read /etc/cron-apt/action.d/3-download: No such file or directory
The command '/bin/sh -c set +   apt -qq -y update;   apt -qq -y full-upgrade;   apt -qq -y install icecast2 python-setuptools sudo cron-apt;   apt -y autoclean;   apt clean;   chown -R icecast2 /etc/icecast2;   sed -i 's/ -d//' /etc/cron-apt/action.d/3-download' returned a non-zero code: 2