Skip to content

Commit

Permalink
Dockerfile fixes for docker v2 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sheridancbio committed Aug 20, 2024
1 parent 6304607 commit 6272157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/web-and-data/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# NOTE: the .git folder is included in the build stage, but excluded
# from the final image. No confidential information is exposed.
# (see: stackoverflow.com/questions/56278325)
FROM maven:3-eclipse-temurin-21 as build
FROM maven:3-eclipse-temurin-21 AS build

# download maven dependencies first to take advantage of docker caching
COPY pom.xml /cbioportal/
Expand All @@ -22,7 +22,7 @@ WORKDIR /cbioportal

RUN mvn dependency:go-offline --fail-never

COPY $PWD /cbioportal
COPY . /cbioportal
RUN mvn install package -DskipTests -q
RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*-exec.jar)

Expand Down
4 changes: 2 additions & 2 deletions docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#
# WARNING: the shendoah image is a nightly, untested, experimental build. If
# you want to use an official openjdk image instead use the web-and-data image.
FROM maven:3-eclipse-temurin-21 as build
COPY $PWD /cbioportal
FROM maven:3-eclipse-temurin-21 AS build
COPY . /cbioportal
WORKDIR /cbioportal
ARG MAVEN_OPTS=-DskipTests
# Use quite output so we can see the build steps easily
Expand Down

0 comments on commit 6272157

Please sign in to comment.