Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.