-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM maven:3.9.9-eclipse-temurin-22-alpine as builder
WORKDIR /build/
COPY Remote-Handle-Resolver /build
RUN ls -lah /build/ && \
cd /build/ && \
mvn clean install
FROM alpine/java:22-jdk
WORKDIR /app/
COPY assets/handle-9.3.1 /app/hs/
COPY assets/config/* /app/config/
COPY --from=builder /build/target/dspace-remote-handle-resolver*.jar /app/hs/lib/
RUN mkdir -p /app/logs && \
sed -i 's/net\.handle\.server\.Main "\$@"/ \$HANDLEJAVACMD net.handle.server.Main "\$@"/' /app/hs/bin/hdl
env HANDLEJAVACMD=" -Dlog4j.debug=true -Dlog4j.configuration=file:///app/config/log4j-handle-plugin.properties -Ddspace.handle.plugin.configuration=/app/config/handle-dspace-plugin.cfg"
RUN ls -lah /app && \
ls -lah /app/hs/
CMD [ "/app/hs/bin/hdl-server", "/app/config/" ]