Skip to content

Commit e5a0958

Browse files
committed
feat: dockerfile, docker-compose 파일 수정
1 parent fe444d0 commit e5a0958

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
FROM openjdk:21-jdk-slim AS builder
2+
3+
WORKDIR /app
4+
5+
COPY build/libs/*.jar app.jar
6+
17
FROM openjdk:21-jdk-slim
2-
COPY app.jar app.jar
8+
9+
WORKDIR /app
10+
11+
COPY --from=builder /app/app.jar .
12+
313
ENTRYPOINT ["java", "-jar", "app.jar"]

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ services:
66
container_name: redis
77
restart: always
88
volumes:
9-
- redis_data:/data # 데이터 영구 저장을 위한 볼륨
9+
- redis_data:/data
1010

1111
app:
12+
build: .
1213
image: 118497224929.dkr.ecr.ap-northeast-2.amazonaws.com/clip-trip/server:latest
1314
container_name: clip-trip-server
1415
ports:

0 commit comments

Comments
 (0)