Skip to content

Commit dd32c9d

Browse files
committed
don't rely on IDRIS_SHA in devcontainer-sha Dockerfile
1 parent f27676b commit dd32c9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

devcontainer-sha.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ ARG BASE_IMG=ghcr.io/joshuanianji/idris-2-docker/base:${IDRIS_VERSION}
99
# Rebuild with correct prefix. Somehow, building from scratch with a different prefix fails
1010
FROM $BASE_IMG as idris-builder
1111
ARG IDRIS_VERSION
12-
ARG IDRIS_SHA
1312

1413
WORKDIR /build
15-
RUN git clone https://github.com/idris-lang/Idris2.git && cd Idris2 && git checkout $IDRIS_SHA
14+
RUN git clone --depth 1 --branch $IDRIS_VERSION https://github.com/idris-lang/Idris2.git
1615
WORKDIR /build/Idris2
1716
RUN make all PREFIX=/usr/local/lib/idris2
1817
RUN make install PREFIX=/usr/local/lib/idris2

0 commit comments

Comments
 (0)