You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
484 B
Docker
27 lines
484 B
Docker
7 years ago
|
FROM openjdk:8-alpine
|
||
|
|
||
|
MAINTAINER EstiNet
|
||
|
|
||
|
ARG PORT_NUM
|
||
|
ENV PORT_NUM ${PORT_NUM:-25450}
|
||
|
|
||
|
ARG EC_PORT_NUM
|
||
|
ENV EC_PORT_NUM ${EC_PORT_NUM:-7050}
|
||
|
|
||
|
EXPOSE $EC_PORT_NUM $PORT_NUM
|
||
|
|
||
|
COPY . /usr/src/server
|
||
|
WORKDIR /usr/src/server
|
||
|
|
||
|
RUN echo server-port=$PORT_NUM >> server.properties
|
||
|
RUN echo port=$EC_PORT_NUM >> esticonsole.properties
|
||
|
|
||
|
# RUN apk add --no-cache screen
|
||
|
|
||
|
RUN mkdir /data
|
||
|
|
||
|
RUN mkdir /data/logs
|
||
|
|
||
|
# CMD screen -S -X 'java -jar EstiConsole.jar\n'
|
||
|
CMD exec java -jar EstiConsole.jar
|