-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathDockerfile-cli
29 lines (22 loc) · 925 Bytes
/
Dockerfile-cli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This Dockerfile governs the uPortal Docker image you can use to invoke Import/Export tasks from
# within a container. The portal must be fully assembled (based on tomcatInstall + tomcatDeploy)
# before building the Docker image.
# This image requires Gradle; it is not as slim as the web server-only image
FROM gradle:7.2.0-jdk8-hotspot
# Some of the uPortal tech requires elevated privileges
USER root
# We need the fully-assembled Tomcat container
COPY .gradle/tomcat .gradle/tomcat
# We need the complete build system
COPY buildSrc buildSrc
COPY gradle/tasks gradle/tasks
COPY overlays overlays
COPY build.gradle build.gradle
COPY gradle.properties gradle.properties
COPY settings.gradle settings.gradle
# We need the data sets
COPY data data
# Containers based on this image are expected to invoke the Gradle-based CLI
ENTRYPOINT ["gradle"]
# Let the default CMD be 'tasks' -- overriding is easy
CMD ["tasks"]