Created
January 24, 2019 00:35
-
-
Save IsTheJack/4bd0dfea441ca0eb57ee84ec32fbfa71 to your computer and use it in GitHub Desktop.
DUVA docker
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
# 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