Skip to content

Commit

Permalink
environment: Jenkinsfile, Dockerfile 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SongJaeHoonn committed Sep 2, 2024
1 parent 70db63f commit 3be03d5
Show file tree
Hide file tree
Showing 3 changed files with 483 additions and 32 deletions.
12 changes: 12 additions & 0 deletions jenkins/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Use the official OpenJDK 21 image from the Docker Hub
FROM openjdk:21-jdk

# Expose port 8080 to the outside world
EXPOSE 8080

# Copy the JAR file into the container
COPY build/libs/time.jar /time.jar

# Set the default active profile to 'stage'. Modify the 'spring.profiles.active' property to match your environment.
# For example, use '-Dspring.profiles.active=production' for production environment.
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=prod", "/time.jar"]
Loading

0 comments on commit 3be03d5

Please sign in to comment.