Skip to content

Commit

Permalink
chore(CI/CD) : Amazon Corretto JDK 21 기반 Docker 배포 파이프라인 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoonworld authored Jan 27, 2025
1 parent ab1f07b commit 221b212
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile-prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM amazoncorretto:21
WORKDIR /app

# Copy JAR file to the container
COPY build/libs/noostak-0.0.1-SNAPSHOT.jar /app/noostak.jar
COPY build/libs/noostak-0.0.1-SNAPSHOT.jar /app/noostak-0.0.1-SNAPSHOT.jar

# Set environment variables for timezone and Spring profile
ENV TZ=Asia/Seoul
Expand All @@ -15,5 +15,4 @@ ENV SPRING_PROFILES_ACTIVE=prod
EXPOSE 8080

# Run the application
CMD ["java", "-Duser.timezone=$TZ", "-jar", "-Dspring.profiles.active=$SPRING_PROFILES_ACTIVE", "noostak.jar"]

CMD ["java", "-Duser.timezone=$TZ", "-jar", "-Dspring.profiles.active=$SPRING_PROFILES_ACTIVE", "/app/noostak-0.0.1-SNAPSHOT.jar"]

0 comments on commit 221b212

Please sign in to comment.