Skip to content

Instantly share code, notes, and snippets.

@IsTheJack
Created January 24, 2019 00:35
Show Gist options
  • Select an option

  • Save IsTheJack/4bd0dfea441ca0eb57ee84ec32fbfa71 to your computer and use it in GitHub Desktop.

Select an option

Save IsTheJack/4bd0dfea441ca0eb57ee84ec32fbfa71 to your computer and use it in GitHub Desktop.

Revisions

  1. IsTheJack created this gist Jan 24, 2019.
    22 changes: 22 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # 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"]