im getting the following error /bin/sh: apt-get: command not found
and this is my dockerfile :
FROM openjdk:17
RUN apt-get update && apt-get upgrade -y
COPY target/*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
CodePudding user response:
OpenJDK:17 image is based on Oracle Linux 7 which use microdnf as package manager.