Skip to content

Commit e2c26b8

Browse files
committed
add idris2 to path before self-hosting + api step
1 parent 88920b6 commit e2c26b8

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

base.Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,15 @@ RUN if [ $IDRIS_VERSION = "latest" ] ; \
4343
WORKDIR /root/Idris2
4444
RUN make bootstrap SCHEME=scheme && make install
4545

46+
# add idris2 to path
47+
ENV PATH="/root/.idris2/bin:${PATH}"
48+
# add idris lib to LD_LIBRARY_PATH
49+
ENV LD_LIBRARY_PATH="/root/.idris2/lib:${LD_LIBRARY_PATH}"
50+
4651
# self-hosting (needed for Idris2 API)
4752
# in my experience, the Idris2 API seems to still work without the self-hosting step
4853
# At least, it builds the idris2-python correctly (although i haven't checked anything else)
4954
# to be safe, I'll do this step anyway
5055
# NOTE: not sure if the install-api transfers to the child images
5156
RUN make clean && make all && make install
5257
RUN make install-api
53-
54-
# these things aren't strictly necessary for a functioning base image,
55-
# but they make it possible for us to test the image
56-
57-
# add idris2 to path
58-
ENV PATH="/root/.idris2/bin:${PATH}"
59-
# add idris lib to LD_LIBRARY_PATH
60-
ENV LD_LIBRARY_PATH="/root/.idris2/lib:${LD_LIBRARY_PATH}"

0 commit comments

Comments
 (0)