i have this Dockerfile which contains maven and java and i need to install some tools on it too:
# Use an official Maven image as a parent image
FROM maven:3.8.7-openjdk-18
USER root
# install netcat with requirements for health-check-web-server
RUN apt-get update --allow-releaseinfo-change
&& DEBIAN_FRONTEND=noninteractive
&& apt-get install -y wget
&& apt-get install -y gnupg2
&& apt-get install -y net-tools ncat
&& apt-get clean
when i build the image using the command docker build -t inegration-test .
:
I get this error:
Dockerfile:7
--------------------
6 | # install netcat with requirements for health-check-web-server
7 | >>> RUN apt-get update --allow-releaseinfo-change
8 | >>> && DEBIAN_FRONTEND=noninteractive
9 | >>> && apt-get install -y wget
10 | >>> && apt-get install -y gnupg2
11 | >>> && apt-get install -y net-tools ncat
12 | >>> && apt-get clean
13 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update --allow-releaseinfo-change && DEBIAN_FRONTEND=noninteractive && apt-get install -y wget && apt-get install -y gnupg2 && apt-get install -y net-tools ncat && apt-get clean" did not complete successfully: exit code: 127