seb-server/docker/Dockerfile

18 lines
482 B
Text
Raw Normal View History

2021-04-22 11:41:09 +02:00
FROM openjdk:11-jre-stretch
ENV SERVER_PORT="8080"
ENV JMX_PORT=
ENV JAVA_HEAP_MIN=
ENV JAVA_HEAP_MAX=
#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
2021-04-22 11:41:09 +02:00
COPY docker/start-sebserver.sh seb-server.jar /sebserver/
WORKDIR /sebserver
CMD /bin/sh /sebserver/start-sebserver.sh
EXPOSE $SERVER_PORT $JMX_PORT