Skip to content

Commit

Permalink
Merge pull request #24 from hwangdaesun/feat/JNU-econovation#206
Browse files Browse the repository at this point in the history
feat/JNU-econovation#206 : csv 경로 수정 및 Dockerfile에 수정
  • Loading branch information
hwangdaesun committed May 3, 2024
2 parents f5d5d6e + a89e9d3 commit fc4f32c
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 fc4f32c

Please sign in to comment.