JenaFuseki / Dockerfile
histlearn's picture
Update Dockerfile
d6b44c3 verified
raw
history blame
778 Bytes
# Use the official OpenJDK image as a parent image
FROM openjdk:17-jdk-slim
# Set environment variables
ENV FUSEKI_HOME /fuseki
ENV FUSEKI_BASE /fuseki/run
# Install wget
RUN apt-get update && apt-get install -y wget
# Download and install Apache Jena Fuseki
RUN wget https://dlcdn.apache.org/jena/binaries/apache-jena-fuseki-5.1.0.tar.gz \
&& tar -xzf apache-jena-fuseki-5.1.0.tar.gz \
&& mv apache-jena-fuseki-5.1.0 /fuseki \
&& rm apache-jena-fuseki-5.1.0.tar.gz
# Create directories for databases and logs
RUN mkdir -p /fuseki/run /fuseki/databases && chmod -R 777 /fuseki/run /fuseki/databases
# Expose Fuseki port
EXPOSE 3030
# Set the working directory
WORKDIR /fuseki
# Start Fuseki with default memory dataset
CMD ["./fuseki-server", "--mem", "/ds"]