소스 검색

Docker内指定Profile文件

develop
林万龙 4 년 전
부모
커밋
475c0d1e1c
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. +0
    -2
      Dockerfile

+ 0
- 2
Dockerfile 파일 보기

@@ -9,8 +9,6 @@ ENV TimeZone=Asia/Shanghai
ENV active=dev
ENV profileName="classpath:/application.properties"
ENV JAVA_OPTS="-Xmx256M -Xms256M"
RUN if [ "$active" = "dev" ] ; then $profileName="classpath:/application-dev.properties"; fi
RUN if [ "$active" = "test" ] ; then $profileName="classpath:/application-test.properties"; fi
RUN if [ "$active" = "pro1" ] ; then $profileName="classpath:/application-pro1.properties"; fi
RUN if [ "$active" = "pro2" ] ; then $profileName="classpath:/application-pro2.properties"; fi
RUN if [ "$active" = "pro3" ] ; then $profileName="classpath:/application-pro3.properties"; fi


Loading…
취소
저장