Skip to content

Commit

Permalink
Merge pull request #4 from Sangwook02/feature/3-create-dockerfile
Browse files Browse the repository at this point in the history
docs: 도커파일 작성 (#2)
  • Loading branch information
Sangwook02 authored Jan 5, 2024
2 parents 73d89f6 + 4ee50d2 commit a3a6aa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: build and deploy
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read
Expand Down Expand Up @@ -50,4 +48,4 @@ jobs:
key: ${{ secrets.EC2_SSH_KEY }}
script: |
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/infra_practice_server:latest
sudo docker run -d -p 8080:8080 --name deploy_container
sudo docker run -d -p 8080:8080 --name deploy_container ${{ secrets.DOCKERHUB_USERNAME }}/infra_practice_server:latest
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM eclipse-temurin:17
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]

0 comments on commit a3a6aa8

Please sign in to comment.