Skip to content

Instantly share code, notes, and snippets.

@albinekb
Forked from eduardoromero/Dockerfile
Created May 28, 2017 21:50
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 albinekb/1dd5fb30ed5c35e76e869cfcd15f5e1e to your computer and use it in GitHub Desktop.
Save albinekb/1dd5fb30ed5c35e76e869cfcd15f5e1e to your computer and use it in GitHub Desktop.
Dockerfile for Node 7 with xvfb
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