-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 766 Bytes
/
Dockerfile
File metadata and controls
33 lines (22 loc) · 766 Bytes
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
30
31
32
33
######################################
# Multi-stage Dockerfile
# 1. Set up and build environment
# 2. Run the eXist-db and deploy XARs
######################################
#########################
# 1. Build Environment
#########################
FROM eclipse-temurin:21 AS builder
# installing Apache Ant
RUN apt-get install -y --no-install-recommends apt-transport-https \
&& apt-get update \
&& apt-get install -y --no-install-recommends ant curl zip unzip patch git
WORKDIR /opt/eo-backend
COPY . .
RUN ant
#########################
# 2. Run/deploy eXist-db
#########################
FROM stadlerpeter/existdb:6
# copy built XARs to autodeploy directory of exist
COPY --from=builder /opt/eo-backend/build-xar/*.xar ${EXIST_HOME}/autodeploy/