Skip to content

Instantly share code, notes, and snippets.

@RatoX
Last active November 29, 2017 22:33
Show Gist options
  • Save RatoX/36c56666b1f39897385a5959ef191c82 to your computer and use it in GitHub Desktop.
Save RatoX/36c56666b1f39897385a5959ef191c82 to your computer and use it in GitHub Desktop.
FROM node:8.5.0
# Isso vai te ajudar a lidar com os signais tipo SIGKILL
RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb
RUN dpkg -i dumb-init_*.deb
ENTRYPOINT ["dumb-init"]
# Google Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
RUN apt-get update && apt-get install -y google-chrome-stable
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install
# Lembra de ignora essas e outras pastas não necessárias para sua app [node_modules, dist, README.md]
COPY . /usr/src/app
RUN npm run build -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment