Skip to content

Commit

Permalink
Merge pull request #23 from at88mph/image-rework
Browse files Browse the repository at this point in the history
Dockerfile rework
  • Loading branch information
at88mph authored Dec 3, 2024
2 parents 9bfeda1 + ec11435 commit 514e403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Dockerfile*
bin
build
.idea
.vscode
.gradle
Expand Down
16 changes: 2 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 514e403

Please sign in to comment.