tag(修复):修复跨域错误
This commit is contained in:
@@ -1,18 +1,8 @@
|
||||
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 ./
|
||||
|
||||
# package-release.sh creates this distribution before building the image.
|
||||
COPY build/install/ScreenShareApi ./
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["./bin/ScreenShareApi"]
|
||||
|
||||
Reference in New Issue
Block a user