changeset 481:0701c3e10254

USASR-5154 replace apt with yum
author belknapSSDT <zach.belknap@mcoecn.org>
date Thu, 28 Sep 2023 16:21:52 -0400
parents 52cf091c3e0e
children f240eb72a331
files java-17/Dockerfile
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/java-17/Dockerfile	Thu Sep 28 16:09:43 2023 -0400
+++ b/java-17/Dockerfile	Thu Sep 28 16:21:52 2023 -0400
@@ -2,13 +2,13 @@
 
 MAINTAINER Marc Davis <davis@ssdt-ohio.org>
 
-RUN cd /etc/ && ls && echo "deb http://httpredir.debian.org/debian stretch main contrib" > /etc/apt/sources.list \
-    && echo "deb http://security.debian.org/ stretch/updates main contrib" >> /etc/apt/sources.list \
+RUN cd /etc/ && ls && echo "deb http://httpredir.debian.org/debian stretch main contrib" > /etc/yum.repos.d/sources.list \
+    && echo "deb http://security.debian.org/ stretch/updates main contrib" >> /etc/yum.repos.d/sources.list \
     && echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections \
-    && apt-get update \
-    && apt-get install -y ttf-mscorefonts-installer \
-    && apt-get clean \
-    && apt-get autoremove -y \
+    && yum update \
+    && yum install -y ttf-mscorefonts-installer \
+    && yum clean \
+    && yum autoremove -y \
     && rm -rf /var/lib/apt/lists/*
 
 ENV TZ=America/New_York