Skip to content

Instantly share code, notes, and snippets.

@eduardoromero
Created May 2, 2017 18:38
Show Gist options
  • Save eduardoromero/27cbb424d26b9a1c511732a76524516d to your computer and use it in GitHub Desktop.
Save eduardoromero/27cbb424d26b9a1c511732a76524516d 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