From ea2a5bea025e80eafa8c82b1c48ad86bf890c4d8 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 14 May 2024 19:23:23 +0200 Subject: [PATCH] The image is Oracle based, so microdnf instead of apt. --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7979c0b..f04d9f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ FROM openjdk:17 RUN mkdir -p /opt/shinyproxy -RUN apt-get update --yes && \ - apt-get install --yes --no-install-recommends \ - wget && wget https://shinyproxy.io/downloads/shinyproxy-3.1.0.jar -O /opt/shinyproxy/shinyproxy.jar +RUN microdnf update \ + && microdnf install --nodocs wget \ + && microdnf clean all \ + && rm -rf /var/cache/yum \ + && wget https://shinyproxy.io/downloads/shinyproxy-3.1.0.jar -O /opt/shinyproxy/shinyproxy.jar WORKDIR /opt/shinyproxy CMD ["java", "-jar", "/opt/shinyproxy/shinyproxy.jar"]