Skip to content

Instantly share code, notes, and snippets.

@srtab
Last active February 9, 2019 23:41
Show Gist options
  • Save srtab/8214041d6a23228ffd6f75ee12c3f702 to your computer and use it in GitHub Desktop.
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
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