-
-
Save albinekb/1dd5fb30ed5c35e76e869cfcd15f5e1e to your computer and use it in GitHub Desktop.
Dockerfile for Node 7 with xvfb
This file contains hidden or 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
FROM node:7 | |
RUN apt-get update &&\ | |
apt-get install -y libgtk2.0-0 libgconf-2-4 \ | |
libasound2 libxtst6 libxss1 libnss3 xvfb | |
# Exposing port 5000 (micro) | |
EXPOSE 5000 | |
WORKDIR /app | |
# copy project | |
ADD . /app | |
RUN rm -rf node_modules/* | |
RUN npm install | |
COPY start-services.sh / | |
RUN chmod +x /start-services.sh | |
ENTRYPOINT ["/start-services.sh"] | |
CMD ["npm", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment