fix docker image check permission problem

This commit is contained in:
anhefti 2021-04-22 17:44:57 +02:00
parent 6914045d48
commit 4c79bbdc3c
2 changed files with 4 additions and 4 deletions

View file

@ -1,14 +1,13 @@
FROM openjdk:11-jre-stretch
ARG SEBSERVER_VERSION
ENV SEBSERVER_JAR="seb-server-${SEBSERVER_VERSION}.jar"
ENV SERVER_PORT="8080"
ENV JMX_PORT=
ENV JAVA_HEAP_MIN=
ENV JAVA_HEAP_MAX=
RUN groupadd --system spring && useradd --system --gid spring spring && mkdir /sebserver && chown spring:spring /sebserver
USER spring:spring
#just try wihtout user to check if we habe a permission problem
#RUN groupadd --system spring && useradd --system --gid spring spring && mkdir /sebserver && chown spring:spring /sebserver
#USER spring:spring
COPY docker/start-sebserver.sh seb-server.jar /sebserver/

View file

@ -1,3 +1,4 @@
#!/bin/sh
if [ "x${JMX_PORT}" = "x" ] ; \
then exec java \
-Xms${JAVA_HEAP_MIN} \