🔧 Test docker compose

This commit is contained in:
kimjaeyeol
2021-10-26 17:08:14 +09:00
parent 2d192a7c37
commit ee31138c58
24 changed files with 71 additions and 70 deletions

View File

@@ -1,8 +1,6 @@
# openjdk8 base image
FROM openjdk:8-jre-alpine
# config server uri: dockder run --e 로 변경 가능
#ENV SPRING_CLOUD_CONFIG_URI https://egov-config.paas-ta.org
RUN mkdir -p /usr/app/msa-attach-volume
# jar 파일이 복사되는 위치
ENV APP_HOME=/usr/app/
@@ -12,5 +10,5 @@ WORKDIR $APP_HOME
COPY build/libs/*.jar app.jar
# cf docker push, random port 사용할 수 없다
#EXPOSE 80
# 실행 (application-cf.yml 프로필이 기본값)
CMD ["java", "-Dspring.profiles.active=${profile:cf}", "-jar", "app.jar"]
# 실행
CMD ["java", "-Dspring.profiles.active=${profile:default}", "-jar", "app.jar"]