Skip to content

Commit a772744

Browse files
Merge pull request #43 from SelahattinSert/task/dockerize-application
Task/dockerize application
2 parents 5407df3 + f8aed46 commit a772744

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
logs/
2+
.git/
3+
.idea/
4+
*.iml
5+
*.class

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Build Stage
2+
FROM --platform=linux/amd64 eclipse-temurin:21
3+
4+
#
5+
ARG JAR_FILE=target/camera-onboarding-0.0.1-SNAPSHOT.jar
6+
7+
# Set the working directory inside the container
8+
WORKDIR /app
9+
10+
# Copy the application JAR file
11+
COPY ${JAR_FILE} app.jar
12+
13+
# Expose the application port
14+
EXPOSE 8080
15+
16+
# Run the application
17+
ENTRYPOINT ["java", "-jar", "app.jar"]

0 commit comments

Comments
 (0)