Skip to content

Instantly share code, notes, and snippets.

@arsley
Last active March 17, 2019 10:51
Show Gist options
  • Save arsley/4d87ca6390fe32ac7627f52c2f0c627b to your computer and use it in GitHub Desktop.
Save arsley/4d87ca6390fe32ac7627f52c2f0c627b to your computer and use it in GitHub Desktop.
Yarn & Node installation example for Docker
# FROM somewhere...
RUN apt-get update -qq && \
apt-get install -y \
postgresql-client \
graphviz \
tzdata && cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
curl -sL https://deb.nodesource.com/setup_11.x | bash - && \
apt-get install -y nodejs && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update -qq && apt-get install -y yarn
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# RUN something...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment