view java-17/Dockerfile @ 553:39114f8cda17

add export
author belknapSSDT <zach.belknap@mcoecn.org>
date Thu, 23 May 2024 11:05:21 -0400
parents eb70cc84cfb0
children eae4a6205738
line wrap: on
line source
FROM openjdk:17-buster

MAINTAINER Marc Davis <davis@ssdt-ohio.org>

RUN ls && echo "deb http://deb.debian.org/debian buster main contrib" > /etc/apt/sources.list \
    && echo "deb http://security.debian.org/debian-security/ buster/updates main contrib" >> /etc/apt/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 \
    && rm -rf /var/lib/apt/lists/*


ONBUILD SHELL ["cmd", "/S", "/C"]
ONBUILD RUN --add-exports=java.xml/com.sun.org.apache.xml.internal.serialize=ALL-UNNAMED

ENV TZ=America/New_York

RUN echo $TZ > /etc/timezone \
    && dpkg-reconfigure --frontend noninteractive tzdata