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
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"]