-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfileFuseki
35 lines (26 loc) · 1.06 KB
/
DockerfileFuseki
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
# syntax=docker/dockerfile:1.3-labs
# To build the container:
# docker build -f DockerfileFuseki -t fuseki .
# To run smol in the current directory:
# docker run -it --rm -v "$PWD":/root/smol -p 3030:3030 fuseki
# Use a base image, for example, Ubuntu
FROM ubuntu:latest
RUN <<EOF
apt-get -y update
DEBIAN_FRONTEND=noninteractive apt-get -y install openjdk-17-jdk-headless python3 python3-pip liblapack3 wget
rm -rf /var/lib/apt/lists/*
pip3 install pyzmq
EOF
COPY . /usr/local/src/smol
COPY src/test/resources/docker_fuseki_config.ttl /usr/local/src/smol
COPY src/test/resources/tree_shapes.ttl /usr/local/src/smol
# Set the working directory
WORKDIR /usr/local/src/smol
# Download and copy the tar.gz file into the container
ADD https://dlcdn.apache.org/jena/binaries/apache-jena-fuseki-4.10.0.tar.gz /usr/local/src/smol
# Extract the tar.gz file
RUN tar -xvzf apache-jena-fuseki-4.10.0.tar.gz
# Execute the command
CMD /usr/local/src/smol/apache-jena-fuseki-4.10.0/fuseki-server --update --config docker_fuseki_config.ttl
# Expose port 3030
EXPOSE 3030