Skip to content

Commit

Permalink
Merge pull request #2 from Kusitms-28th-PartCrossStudy-B/koeyhk
Browse files Browse the repository at this point in the history
chore: Docker 파일 추가
  • Loading branch information
kyeong-hyeok authored Sep 9, 2023
2 parents 04a6497 + 610c3f7 commit 2a819c2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM openjdk:17-jdk
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} /app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3'

services:
springboot:
container_name: spring-dev
image: pcsbteam/pcs:latest-dev
ports:
- 8080:8080
environment:
SPRING_PROFILES_ACTIVE : dev-env # 사용할 profile 지정
networks:
- pcs_network

networks:
pcs_network:
driver: bridge

0 comments on commit 2a819c2

Please sign in to comment.