fix docker image check permission problem
This commit is contained in:
parent
6914045d48
commit
4c79bbdc3c
2 changed files with 4 additions and 4 deletions
|
@ -1,14 +1,13 @@
|
||||||
FROM openjdk:11-jre-stretch
|
FROM openjdk:11-jre-stretch
|
||||||
|
|
||||||
ARG SEBSERVER_VERSION
|
|
||||||
ENV SEBSERVER_JAR="seb-server-${SEBSERVER_VERSION}.jar"
|
|
||||||
ENV SERVER_PORT="8080"
|
ENV SERVER_PORT="8080"
|
||||||
ENV JMX_PORT=
|
ENV JMX_PORT=
|
||||||
ENV JAVA_HEAP_MIN=
|
ENV JAVA_HEAP_MIN=
|
||||||
ENV JAVA_HEAP_MAX=
|
ENV JAVA_HEAP_MAX=
|
||||||
|
|
||||||
RUN groupadd --system spring && useradd --system --gid spring spring && mkdir /sebserver && chown spring:spring /sebserver
|
#just try wihtout user to check if we habe a permission problem
|
||||||
USER spring:spring
|
#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/
|
COPY docker/start-sebserver.sh seb-server.jar /sebserver/
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
if [ "x${JMX_PORT}" = "x" ] ; \
|
if [ "x${JMX_PORT}" = "x" ] ; \
|
||||||
then exec java \
|
then exec java \
|
||||||
-Xms${JAVA_HEAP_MIN} \
|
-Xms${JAVA_HEAP_MIN} \
|
||||||
|
|
Loading…
Reference in a new issue