Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fancy-news-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"docker-node-java-jena": minor
---

Add `sophia-cli` as `sop`
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
ARG SOPHIA_CLI_VERSION="2cf13ac19e4f1e61b502267a2f6381e84993d1b1"

FROM rust:bookworm AS sophia-cli-builder

WORKDIR /app

ARG SOPHIA_CLI_VERSION

# Fetch source code of sophia-cli, in order to build it and have it available in the final image
RUN git init \
&& git remote add origin https://github.com/pchampin/sophia-cli.git \
&& git fetch --depth 1 origin "${SOPHIA_CLI_VERSION}" \
&& git checkout FETCH_HEAD \
&& rm -rf .git
RUN cargo build --release

FROM docker.io/library/node:24-trixie-slim

ENV DEBIAN_FRONTEND="noninteractive"
Expand All @@ -12,6 +28,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Add sophia-cli to the image
COPY --from=sophia-cli-builder /app/target/release/sop /usr/bin/sop

# Install Minio client
COPY --from=minio/mc:latest /usr/bin/mc /usr/bin/mc

Expand Down