24 lines
766 B
Docker
24 lines
766 B
Docker
FROM xena/alpine
|
|
|
|
ENV PATH=$PATH:/opt/nim/bin:/root/.nimble/bin
|
|
ENV NIM_VERSION 0.15.2
|
|
ENV NIM_DOWNLOAD_URL http://nim-lang.org/download/nim-$NIM_VERSION.tar.xz
|
|
|
|
RUN apk update && \
|
|
apk add libc-dev gcc curl libgcc git perl xz tar && \
|
|
rm -rf /var/cache/apk/* && \
|
|
mkdir -p /opt && cd /opt && \
|
|
curl -LO $NIM_DOWNLOAD_URL && \
|
|
/usr/bin/tar xJf nim-$NIM_VERSION.tar.xz && rm -f nim-$NIM_VERSION.tar.xz && \
|
|
mv nim-$NIM_VERSION nim && cd nim && \
|
|
sh build.sh && \
|
|
cd .. && git clone https://github.com/nim-lang/nimble.git && \
|
|
cd nimble && \
|
|
nim -d:release c -r src/nimble -y install
|
|
|
|
ADD hack/nimble.nimble /root/.nimble/pkgs/nimble-0.7.10/nimble.nimble
|
|
|
|
LABEL language Nim
|
|
LABEL version $NIM_VERSION
|
|
LABEL distro Alpine Linux
|