dockerfiles/lang/nim/Dockerfile

22 lines
767 B
Docker
Raw Normal View History

2016-09-15 17:42:00 +00:00
FROM xena/alpine
2016-03-21 00:22:32 +00:00
2016-06-10 19:41:56 +00:00
ENV PATH=$PATH:/opt/nim/bin:/root/.nimble/bin
2017-01-09 23:28:20 +00:00
ENV NIM_VERSION 0.16.0
2016-10-27 12:22:50 +00:00
ENV NIM_DOWNLOAD_URL http://nim-lang.org/download/nim-$NIM_VERSION.tar.xz
2016-03-21 00:22:32 +00:00
2017-01-09 23:28:20 +00:00
RUN apk add --no-cache --virtual nim-compiler-deps libc-dev gcc curl libgcc git perl xz tar && \
apk add --no-cache libressl ca-certificates && \
2016-06-10 19:41:56 +00:00
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 && \
2016-10-27 12:22:50 +00:00
mv nim-$NIM_VERSION nim && cd nim && \
2016-06-10 19:41:56 +00:00
sh build.sh && \
cd .. && git clone https://github.com/nim-lang/nimble.git && \
cd nimble && \
nim -d:release c -r src/nimble -y install
2016-03-21 00:22:32 +00:00
2016-06-10 19:41:56 +00:00
LABEL language Nim
LABEL version $NIM_VERSION
LABEL distro Alpine Linux