Skip to content

Commit 3be03d5

Browse files
committed
environment: Jenkinsfile, Dockerfile 수정
1 parent 70db63f commit 3be03d5

File tree

3 files changed

+483
-32
lines changed

3 files changed

+483
-32
lines changed

jenkins/prod/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Use the official OpenJDK 21 image from the Docker Hub
2+
FROM openjdk:21-jdk
3+
4+
# Expose port 8080 to the outside world
5+
EXPOSE 8080
6+
7+
# Copy the JAR file into the container
8+
COPY build/libs/time.jar /time.jar
9+
10+
# Set the default active profile to 'stage'. Modify the 'spring.profiles.active' property to match your environment.
11+
# For example, use '-Dspring.profiles.active=production' for production environment.
12+
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=prod", "/time.jar"]

0 commit comments

Comments
 (0)