Created
August 1, 2019 12:42
-
-
Save pekeq/953a38f1ff64a13d565e8120208e9287 to your computer and use it in GitHub Desktop.
node10/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:10 | |
ENV YARN_VERSION 1.16.0 | |
ENV NPM_VERSION 6.9.0 | |
RUN set -ex \ | |
&& apt-get update \ | |
&& apt-get install -y --no-install-recommends rsync lftp jq nasm optipng pngquant zopfli ruby python-dev \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ | |
&& python get-pip.py --no-cache-dir \ | |
&& pip install awscli --no-cache-dir \ | |
&& find /usr/local -depth \ | |
\( \ | |
\( -type d -a \( -name test -o -name tests \) \) \ | |
-o \ | |
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \ | |
\) -exec rm -rf '{}' + \ | |
&& rm -f get-pip.py | |
RUN set -ex \ | |
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \ | |
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \ | |
&& ln -snf /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \ | |
&& ln -snf /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \ | |
&& rm yarn-v$YARN_VERSION.tar.gz | |
RUN set -ex \ | |
&& npm install -g npm@$NPM_VERSION \ | |
&& npm install -g firebase-tools \ | |
&& rm -fr $HOME/.npm | |
CMD [ "node" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment