Skip to content

Commit 395b362

Browse files
cors 도메인 추가
1 parent 7a39222 commit 395b362

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
21
FROM maven:3.9.6-eclipse-temurin-21 AS build
32
WORKDIR /app
3+
44
COPY .mvn/ .mvn
55
COPY mvnw pom.xml ./
6+
RUN chmod +x mvnw
67
RUN ./mvnw dependency:go-offline --no-transfer-progress --fail-fast
8+
79
COPY src ./src
810
RUN ./mvnw clean package -Dmaven.test.skip=true --no-transfer-progress --fail-fast
911

10-
1112
FROM eclipse-temurin:21-jre-jammy
1213
WORKDIR /app
1314
COPY --from=build /app/target/ecommerce-0.0.1-SNAPSHOT.jar app.jar
1415
EXPOSE 8080
15-
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=prod", "app.jar"]
16+
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=prod", "app.jar"]

0 commit comments

Comments
 (0)