The beginning of my docker file is below, I change the stuff after it often but never this part, but it takes a while to run, especially RUN apt-get -y install npm
, can I cache the package download somehow? I looked at docker caching but I don't think that is what it does?
FROM ubuntu:20.04
RUN apt-get -y update
RUN apt-get -y install ruby
RUN apt-get -y install ruby-dev
RUN apt-get -y install gcc
RUN apt-get -y install make
RUN gem install compass
RUN apt-get -y install nodejs
RUN apt-get -y install npm
RUN apt-get -y install git