Skip to content

Instantly share code, notes, and snippets.

@muxueqz
Created September 16, 2021 08:30
Show Gist options
  • Save muxueqz/410ca0715fb6884fa273db1cf1f92fea to your computer and use it in GitHub Desktop.
Save muxueqz/410ca0715fb6884fa273db1cf1f92fea to your computer and use it in GitHub Desktop.
FROM ubuntu:latest
RUN : \
&& apt-get update -y --quiet \
&& apt-get install -y curl python3-pycurl wget python3-wget python3-pip gcc git \
&& apt-get clean -y --quiet
RUN : \
&& curl -o /tmp/nim.tar.xz https://nim-lang.org/download/nim-1.4.8-linux_x64.tar.xz \
&& tar xvf /tmp/nim.tar.xz \
&& mv -v nim-* /opt/ \
&& ln -sfv /opt/nim-* /opt/nim \
&& ln -sfv /opt/nim/bin/* /usr/bin/
RUN : \
&& apt-get update -y --quiet \
&& apt-get install -y git
RUN rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/nimblecache/* /var/log/journal/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment