Last active
February 9, 2019 23:41
-
-
Save srtab/8214041d6a23228ffd6f75ee12c3f702 to your computer and use it in GitHub Desktop.
Custom Node:10-slim image with google-chrome-stable and node-sass pre-installed
This file contains 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-slim | |
LABEL maintainer="team@dipcode.com" | |
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | |
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list | |
RUN apt-get update -y && \ | |
apt-get install -y \ | |
google-chrome-stable && \ | |
apt-get clean | |
USER node | |
WORKDIR /home/node/app | |
ENV LC_ALL=C.UTF-8 \ | |
LANG=C.UTF-8 \ | |
NPM_CONFIG_PREFIX=/home/node/.npm-global \ | |
PATH=$PATH:/home/node/.npm-global/bin | |
RUN npm i -g npm && \ | |
npm i -g node-sass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment