Skip to content

Commit 96f576f

Browse files
committed
Dockerfile 이동 및 yml 수정
1 parent f6ef123 commit 96f576f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Build Docker image with short commit SHA
4141
run: |
4242
VERSION=$(echo "${{ github.sha }}" | cut -c1-7)
43-
docker build -t $IMAGE_NAME:$VERSION -f target/Dockerfile target
43+
docker build -t $IMAGE_NAME:$VERSION .
4444
echo "VERSION=$VERSION" >> $GITHUB_ENV
4545
4646
- name: Push Docker image

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM openjdk:21
2+
COPY target/*.jar app.jar
3+
ENTRYPOINT ["java", "-jar", "/app.jar"]

0 commit comments

Comments
 (0)