tag(功能):功能跑通
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
FROM eclipse-temurin:21-jdk AS build
|
||||
WORKDIR /app
|
||||
|
||||
COPY gradlew gradlew
|
||||
COPY gradle gradle
|
||||
COPY build.gradle.kts settings.gradle.kts gradle.properties ./
|
||||
RUN chmod +x gradlew
|
||||
RUN ./gradlew dependencies --no-daemon
|
||||
|
||||
COPY src src
|
||||
RUN ./gradlew installDist --no-daemon
|
||||
|
||||
FROM eclipse-temurin:21-jre
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/build/install/ScreenShareApi ./
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["./bin/ScreenShareApi"]
|
||||
Reference in New Issue
Block a user