diff --git a/.dockerignore b/.dockerignore index 369db8f..1911493 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,5 @@ Dockerfile* bin -build .idea .vscode .gradle diff --git a/Dockerfile b/Dockerfile index 68168cc..50fc21c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,3 @@ -FROM eclipse-temurin:11-alpine AS base +FROM images.opencadc.org/library/cadc-tomcat:1 -FROM base AS builder - -COPY . /storage-ui -WORKDIR /storage-ui -RUN apk --no-cache add git \ - && git fetch origin main \ - && ./gradlew -i clean spotlessCheck build test --no-daemon - -FROM images.opencadc.org/library/cadc-tomcat:1.3 AS production - -RUN mkdir -p /usr/share/tomcat/config - -COPY --from=builder /storage-ui/build/libs/storage.war /usr/share/tomcat/webapps/ +COPY build/libs/storage.war /usr/share/tomcat/webapps/