Initial commit
This commit is contained in:
16
backend/user-service/Dockerfile
Normal file
16
backend/user-service/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# 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/
|
||||
# 작업 시작 위치
|
||||
WORKDIR $APP_HOME
|
||||
# jar 파일 복사
|
||||
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"]
|
||||
Reference in New Issue
Block a user