Hello,
I tried to build an image with the following Dockerfile:
FROM ubuntu
RUN apt-get update
RUN apt-get install apache2
RUN sed -i “s|80|8082 |g” /etc/apache2/ports.conf
RUN sed -i “s|80|8082 |g” /etc/apache/sites-enabled/000-default.conf
CMD [“service”, “apache2”, “start”]
But I have this error at each execution:
ERROR: failed to solve: process “/bin/sh -c apt-get install apache2” did not complete successfully: exit code: 1
Thanks for you help.