Skip to content

Instantly share code, notes, and snippets.

@IsTheJack
Created January 24, 2019 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IsTheJack/4bd0dfea441ca0eb57ee84ec32fbfa71 to your computer and use it in GitHub Desktop.
Save IsTheJack/4bd0dfea441ca0eb57ee84ec32fbfa71 to your computer and use it in GitHub Desktop.
DUVA docker
# This Dockerfile is for the development environment
FROM node:latest
# Some dependencies for Cypress
RUN apt-get update
RUN apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 -y
# Define folder in container
RUN mkdir -p /app
COPY . /app
WORKDIR /app
COPY package.json /app
COPY package-lock.json /app
RUN npm install
COPY . /app
ENV HOST 0.0.0.0
EXPOSE 3000
CMD ["npm", "run", "dev"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment