did/docker/Dockerfile

15 lines
258 B
Docker
Raw Normal View History

2018-08-15 04:36:17 +00:00
FROM openjdk:8-jre-alpine
2018-08-15 03:40:51 +00:00
MAINTAINER ehlxr <ehlxr.me@gmail.com>
WORKDIR /opt
ARG SERVER_NAME
ENV SERVER_NAME=${SERVER_NAME}
COPY start.sh /opt/start.sh
COPY ${SERVER_NAME}*.jar /opt/
RUN chmod -R 755 /opt/
EXPOSE 16830 16831
ENTRYPOINT ["/opt/start.sh"]