The image is Oracle based, so microdnf instead of apt.

This commit is contained in:
Andrea Dell'Amico 2024-05-14 19:23:23 +02:00
parent b455495a27
commit ea2a5bea02
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 5 additions and 3 deletions

View File

@ -1,9 +1,11 @@
FROM openjdk:17 FROM openjdk:17
RUN mkdir -p /opt/shinyproxy RUN mkdir -p /opt/shinyproxy
RUN apt-get update --yes && \ RUN microdnf update \
apt-get install --yes --no-install-recommends \ && microdnf install --nodocs wget \
wget && wget https://shinyproxy.io/downloads/shinyproxy-3.1.0.jar -O /opt/shinyproxy/shinyproxy.jar && 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 WORKDIR /opt/shinyproxy
CMD ["java", "-jar", "/opt/shinyproxy/shinyproxy.jar"] CMD ["java", "-jar", "/opt/shinyproxy/shinyproxy.jar"]