diff --git a/docker/Dockerfile b/docker/Dockerfile index 1dbfc4f5..9bd56538 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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/ diff --git a/docker/start-sebserver.sh b/docker/start-sebserver.sh index e0ee63cf..8dc36a19 100644 --- a/docker/start-sebserver.sh +++ b/docker/start-sebserver.sh @@ -1,3 +1,4 @@ +#!/bin/sh if [ "x${JMX_PORT}" = "x" ] ; \ then exec java \ -Xms${JAVA_HEAP_MIN} \