Home > OS >  Failed to craeate Dockerfile Openjdk image /bin/sh: apt-get: not found
Failed to craeate Dockerfile Openjdk image /bin/sh: apt-get: not found

Time:01-11

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.

  • Related