Skip to content

Commit

Permalink
�chore: dockerfile 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsh44 authored Jul 16, 2024
1 parent e083769 commit 67791c7
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
FROM gradle:jdk-21-and-22-alpine AS build
WORKDIR /app

COPY build.gradle settings.gradle /app/
RUN gradle dependencies --no-daemon || return 0

COPY . /app
RUN gradle clean build --no-daemon -x test

FROM openjdk:21-jdk-slim
WORKDIR /app

COPY --from=build /app/build/libs/*.jar /app/server.jar
ARG JAR_FILE=./build/libs/*.jar

COPY ${JAR_FILE} server.jar

EXPOSE 8080
ENTRYPOINT ["java"]
CMD ["-jar", "server.jar"]

ENTRYPOINT ["java", "-jar", "server.jar"]

0 comments on commit 67791c7

Please sign in to comment.