-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
35 lines (26 loc) · 1.05 KB
/
Dockerfile
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
34
FROM openjdk:17-alpine
# Create content folder that will be linked from the outside into
# the container. It will contain the persistent graphs contents
# and the configuration files of the Fuseki server
RUN mkdir -p /fuseki
RUN mkdir -p /content
# Copy all files including the modified fuseki files into the main directory.
ADD ./fuseki /fuseki
ADD ./custom/webapp /fuseki/webapp/
# Make sure both persistent graphs and server configuration files
# are available on server startup
ENV FUSEKI_HOME /fuseki
ENV FUSEKI_BASE /content
WORKDIR /fuseki
# Persist changes to the outside
VOLUME $FUSEKI_BASE
# Start the service
ADD docker_startup.sh /fuseki
RUN chmod +x ./docker_startup.sh
# Mitigation of log4j vulnerability; required until the built in
# log4j version in fuseki-server.jar has been updated to >= 2.15.0
# Check fuseki-server.jar:METAINF/DEPENDENCIES for the used version.
# Check https://logging.apache.org/log4j/2.x/security.html for details
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
#ENTRYPOINT sh fuseki-server --port=4044
ENTRYPOINT ["./docker_startup.sh"]