lepu-test-platform-service/Dockerfile

13 lines
450 B
Docker
Raw Normal View History

#FROM 192.168.16.17/library/jjdk:1.8.0
FROM openjdk:8-jre-slim
MAINTAINER zhangbo
VOLUME /tmp
ENV LANG C.UTF-8
RUN mkdir -p /application/app
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
ADD target/*.jar /application/app
CMD yum -y install net-tools
WORKDIR /application/app
ENTRYPOINT ["java","-jar","lepu-test-platform-service-0.0.1-SNAPSHOT.jar", "--spring.profiles.active=prod"]
EXPOSE 9527