Skip to content

Commit

Permalink
chore(CI/CD) : Amazon Corretto JDK 21 기반 Docker 배포 파이프라인 구성(staging)
Browse files Browse the repository at this point in the history
  • Loading branch information
0-tae committed Jan 27, 2025
1 parent 5546d5e commit 6c1632f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile-staging
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Base image with Amazon Corretto JDK 21
FROM amazoncorretto:21

# Set working directory
WORKDIR /app

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

# Set environment variables for timezone and Spring profile
ENV TZ=Asia/Seoul
ENV SPRING_PROFILES_ACTIVE=staging

# Expose default Spring Boot port
EXPOSE 8080

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

0 comments on commit 6c1632f

Please sign in to comment.