File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change 1- FROM gitscm/git AS src
2- ARG POLARIS_VERSION=0.9.x
1+ ARG BASE_IMAGE=ghcr.io/kameshsampath/polaris-spark-devbox/polaris-base
32
4- # clone the Polaris repository
5- RUN git clone -b ${POLARIS_VERSION} https://github.com/apache/polaris.git
3+ FROM $BASE_IMAGE
64
7- FROM registry.access.redhat.com/ubi9/openjdk-21:1.20-2.1726695192 AS build
8- ARG ECLIPSELINK=false
9- ARG ECLIPSELINK_DEPS
10-
11- # Copy the REST catalog into the container
12- COPY --from=src --chown=default:root polaris/ /app
13-
14- # Set the working directory in the container, nuke any existing builds
155WORKDIR /app
16- RUN rm -rf build
17-
18- # Build the rest catalog
19- RUN ./gradlew --no-daemon --info ${ECLIPSELINK_DEPS+"-PeclipseLinkDeps=$ECLIPSELINK_DEPS"} -PeclipseLink=$ECLIPSELINK clean prepareDockerDist
20-
21- FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1729089285
22-
23- WORKDIR /app
24-
25- COPY --from=build /app/dropwizard/service/build/docker-dist/bin /app/bin
26- COPY --from=build /app/dropwizard/service/build/docker-dist/lib /app/lib
27- COPY --from=build /app/polaris-server.yml /app
286
297USER root
308
You can’t perform that action at this time.
0 commit comments