NoIssue: Fix for build, run and publish

This commit is contained in:
2026-02-01 21:15:21 +01:00
parent a2fae04892
commit 8f907324ca
7 changed files with 37 additions and 30 deletions

View File

@@ -13,7 +13,7 @@ WORKDIR nenjimhub
RUN mkdir libs
# These dirs are expected to be overshadowed by host mounts
RUN mkdir conf logs
RUN mkdir conf logs && chown user:user logs
# Set timezone
ENV TZ=Europe/Copenhagen
@@ -29,14 +29,14 @@ RUN apt-get autoremove -y \
&& 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 run.sh .
COPY conf/* conf/
COPY libs/*.jar libs/
RUN chmod 755 ./start.sh \
RUN chmod 755 ./run.sh \
&& chmod -R a+rX /usr/local/software/nenjimhub-_VERSION_
USER user:user
CMD ["./start.sh"]
CMD ["./run.sh"]