Skip to content

Commit

Permalink
feat: dockerfile env로 받도록 수정 (#644)
Browse files Browse the repository at this point in the history
* feat: k8s 준비물 추가

* refactor: dev dockerfile 삭제

* chore: dockerfile 경로 변경

* refactor: pro properties cors 관련 설정 수정

* refactor: dockerfile arg cluster ip 추가

* fix: dockerfile arg대신 env로 clusterIP주입받도록 수정

Co-authored-by: sakjung <[email protected]>
  • Loading branch information
dusdn1702 and sakjung authored Oct 13, 2021
1 parent e943377 commit 5433090
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/docker/main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ RUN mkdir zzimkkong && mkdir zzimkkong/tmp
EXPOSE 8080

# 빌드시 명령어에 옵션 추가: --build-arg CLUSTER_IP=<cluster ip>
ARG CLUSTER_IP

RUN echo "${CLUSTER_IP}"
ENV CLUSTER_IP="IP"

ENTRYPOINT ["java", "-Ds3proxy.server-uri=http://${CLUSTER_IP}", "-Dspring.profiles.active=prod", "-jar", "app.jar", "--spring.config.location=classpath:config/application-prod.properties"]

0 comments on commit 5433090

Please sign in to comment.