Files
gemp-lotr/gemp-lotr/docker/gemp_app.Dockerfile
Christian 'ketura' McCarty e3d6633137 Upgrading Java from 17 -> 21 and upgrading all dependencies
- Updating all dependencies to their latest non-beta versions
(except for junit, as junit 5 is significantly different from junit4)
- Converted the log4j configuration as the XML format changed.  Switched the rolling appenders to random access rolling appenders and turned on asynchronous logging, as this is supposed to be dramatically faster in all cases.
- Altered some DB POJO classes whose field names did not match exactly, as fastjson is now more strict about capitalization
- Altered JSON deserialization of arrays to use modern APIs which are much more readable
- Minor improvements to the Docker setup, including automatic working directory movement
2024-04-16 23:58:49 -05:00

53 lines
1.6 KiB
Docker

FROM amazoncorretto:21-alpine-jdk
RUN apk update; \
apk update \
apk add --no-cache procps; \
apk add --no-cache net-tools; \
apk add --no-cache iputils; \
apk add --no-cache bash; \
apk add --no-cache util-linux; \
apk add --no-cache dpkg; \
apk add --no-cache gzip; \
apk add --no-cache curl; \
apk add --no-cache tar; \
apk add --no-cache binutils; \
apk add --no-cache freetype; \
apk add --no-cache fontconfig; \
apk add --no-cache git; \
apk add --no-cache nano;
#####################################################################
# The following is pulled from the official maven dockerfile:
# https://github.com/carlossg/docker-maven/blob/e545dcfa4d312e08330f4e07701763db3889db79/amazoncorretto-21/Dockerfile
#####################################################################
ENV MAVEN_HOME /usr/share/maven
COPY --from=maven:3.9.6-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME}
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml
RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn
ARG MAVEN_VERSION=3.9.6
ARG USER_HOME_DIR="/root"
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
# Enables the JRE remote debugging; perhaps comment this out in a production build
#ENV JAVA_TOOL_OPTIONS -agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n
#####################################################################
RUN apk add --no-cache openrc; \
apk add --no-cache apache2
RUN touch /nohup.out
WORKDIR /etc/gemp-lotr