NoIssue: Support for building runable docker container

This commit is contained in:
2025-12-27 22:28:39 +01:00
parent 0eed8a5fd4
commit 3bd4708e17
15 changed files with 207 additions and 20 deletions

View File

@@ -0,0 +1,39 @@
FROM dockerreg.r35157.com/r35157/jre:24.0.1-2_amd64
LABEL maintainer="Minimons <minimons@r35157.com>"
# Setup environment
ENV NENJIMHUB_HOME=/usr/local/software/nenjimhub
WORKDIR /usr/local/software
USER root
RUN mkdir nenjimhub-_VERSION_
RUN ln -s nenjimhub-_VERSION_ nenjimhub
WORKDIR nenjimhub
RUN mkdir libs
# These dirs are expected to be overshadowed by host mounts
RUN mkdir conf logs in out archive
# Install basic tools
RUN apt-get update
RUN apt-get install -y procps
# Set timezone
ENV TZ=Europe/Copenhagen
RUN apt-get install -y tzdata \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata
# Clean-up
RUN apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install application and configuration (Do this as late as possible to be able to reuse layers between builds)
COPY start.sh .
COPY conf/* conf
COPY libs/*.jar libs
CMD ["./start.sh"]