File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11.PHONY : build clean coverage upload-coverage test upload docker
22
33DOCKER ?= docker
4+ SWIPL_VERSION ?= 9.0.4
45
56build :
67 pyproject-build
@@ -28,4 +29,4 @@ reformat:
2829 ruff format
2930
3031docker :
31- $(DOCKER ) build -t quay.io/ytekol/pyswip:latest -f docker/Dockerfile .
32+ $(DOCKER ) build -t quay.io/ytekol/pyswip:latest-swipl- ${SWIPL_VERSION} -f docker/Dockerfile --build-arg swipl_version= $( SWIPL_VERSION ) .
Original file line number Diff line number Diff line change 11FROM docker.io/debian:stable-slim AS build
22
3+ ARG swipl_version
4+
35RUN useradd -m sam
46
57RUN \
@@ -23,9 +25,9 @@ WORKDIR /home/sam
2325USER sam
2426
2527RUN \
26- curl -LO https://www.swi-prolog.org/download/stable/src/swipl-10.0.0 .tar.gz && \
27- tar xf swipl-10.0.0 .tar.gz && \
28- cd swipl-10.0.0 && \
28+ curl -LO https://www.swi-prolog.org/download/stable/src/swipl-${swipl_version} .tar.gz && \
29+ tar xf swipl-${swipl_version} .tar.gz && \
30+ cd swipl-${swipl_version} && \
2931 cmake \
3032 -B build \
3133 -G Ninja \
3840USER root
3941
4042RUN \
41- cmake --install /home/sam/swipl-10.0.0 /build
43+ cmake --install /home/sam/swipl-${swipl_version} /build
4244
4345
4446FROM docker.io/debian:stable-slim
You can’t perform that action at this time.
0 commit comments