Skip to content

Commit

Permalink
feat: 도커 이미지에 서브모듈 포함
Browse files Browse the repository at this point in the history
  • Loading branch information
plzprayme committed Jun 30, 2021
1 parent 68c110c commit b38ce18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM adoptopenjdk:11-jre
WORKDIR /home/ubuntu
CMD ["mkdir", "-p", "server/build/libs"]
CMD ["mkdir", "-p", "server/src/main/resources"]
COPY ./build/libs/sgsg-0.0.1-SNAPSHOT.jar ./server/build/libs/sgsg-0.0.1-SNAPSHOT.jar
COPY ./src/main/resources ./server/src/main/resources
CMD ["java", "-jar", "-Dspring.profiles.active=develop", "./server/build/libs/sgsg-0.0.1-SNAPSHOT.jar"]
3 changes: 0 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ services:
image: .
environment:
TZ: "Asia/Seoul"
volumes:
- /home/ubuntu/deploy.log:/home/ubuntu/deploy.log
- /home/ubuntu/server/src/main/resources:/home/ubuntu/server/src/main/resources

nginx:
container_name: nginx
Expand Down

0 comments on commit b38ce18

Please sign in to comment.