Skip to content

Commit 3f0f1ad

Browse files
committed
feat: dockerfile에 doppler 변수 추가
1 parent 1f426f7 commit 3f0f1ad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ RUN apt-get update && apt-get install -y apt-transport-https ca-certificates cur
3131
# Build argument로 Doppler 토큰 받기
3232
ARG DOPPLER_TOKEN
3333
ENV DOPPLER_TOKEN=$DOPPLER_TOKEN
34+
ENV DOPPLER_PROJECT=waitfair
35+
ENV DOPPLER_CONFIG=prd
3436

3537
# 첫 번째 스테이지에서 빌드된 JAR 파일 복사
3638
COPY --from=builder /app/build/libs/*.jar app.jar
3739

3840
EXPOSE 8080
3941
# 실행할 JAR 파일 지정
40-
#ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=prod", "app.jar"]
41-
ENTRYPOINT ["doppler", "run", "--", "java", "-jar", "-Dspring.profiles.active=prod", "app.jar"]
42-
42+
ENTRYPOINT ["doppler", "run", "--project", "waitfair", "--config", "prd", "--", "java", "-jar", "-Dspring.profiles.active=prod", "app.jar"]
4343

4444

4545

0 commit comments

Comments
 (0)