comparison java-17/Dockerfile @ 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
comparison
equal deleted inserted replaced
480:52cf091c3e0e 481:0701c3e10254
1 FROM openjdk:17 1 FROM openjdk:17
2 2
3 MAINTAINER Marc Davis <davis@ssdt-ohio.org> 3 MAINTAINER Marc Davis <davis@ssdt-ohio.org>
4 4
5 RUN cd /etc/ && ls && echo "deb http://httpredir.debian.org/debian stretch main contrib" > /etc/apt/sources.list \ 5 RUN cd /etc/ && ls && echo "deb http://httpredir.debian.org/debian stretch main contrib" > /etc/yum.repos.d/sources.list \
6 && echo "deb http://security.debian.org/ stretch/updates main contrib" >> /etc/apt/sources.list \ 6 && echo "deb http://security.debian.org/ stretch/updates main contrib" >> /etc/yum.repos.d/sources.list \
7 && echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections \ 7 && echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections \
8 && apt-get update \ 8 && yum update \
9 && apt-get install -y ttf-mscorefonts-installer \ 9 && yum install -y ttf-mscorefonts-installer \
10 && apt-get clean \ 10 && yum clean \
11 && apt-get autoremove -y \ 11 && yum autoremove -y \
12 && rm -rf /var/lib/apt/lists/* 12 && rm -rf /var/lib/apt/lists/*
13 13
14 ENV TZ=America/New_York 14 ENV TZ=America/New_York
15 15
16 RUN echo $TZ > /etc/timezone \ 16 RUN echo $TZ > /etc/timezone \