Skip to content

Commit

Permalink
feat/JNU-econovation#206 : csv 경로 수정 및 Dockerfile에 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangdaesun committed May 3, 2024
1 parent 91e76f4 commit a89e9d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion BE/exceed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@ FROM openjdk:17-oracle

ENV TZ=Asia/Seoul

# 앱을 위한 작업 디렉토리 설정
WORKDIR /app

# JAR 파일 복사
ARG JAR_FILE="./build/libs/*.jar"
COPY ${JAR_FILE} eatceed.jar

# CSV 파일 복사
COPY ./food_data.csv ./food_data.csv

EXPOSE 8080
CMD ["java", "-jar", "-Dspring.profiles.active=dev", "eatceed.jar", "../food_data.csv"]

# CMD 명령어에서 CSV 파일의 위치를 절대 경로로 지정
CMD ["java", "-jar", "-Dspring.profiles.active=dev", "eatceed.jar", "./food_data.csv"]
File renamed without changes.

0 comments on commit a89e9d3

Please sign in to comment.