Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created May 1, 2018 02:07
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 springmeyer/32b9116f440a1befd58dca45574aa86d to your computer and use it in GitHub Desktop.
Save springmeyer/32b9116f440a1befd58dca45574aa86d to your computer and use it in GitHub Desktop.
Dockerfile for running mapbox-gl-native node module
FROM ubuntu:xenial-20171006
# docker build -t mbgl -f Dockerfile.mbgl .
# docker run -it mbgl bash
# install && clean up
RUN apt-get update -qq && \
apt-get install -y curl && \
curl https://nodejs.org/dist/v4.8.7/node-v4.8.7-linux-x64.tar.gz | tar zxC /usr/local --strip-components=1
RUN apt-get install -y libgles2-mesa libegl1-mesa
RUN npm install @mapbox/mapbox-gl-native@4.0.0-pre.2
RUN node -e "require('@mapbox/mapbox-gl-native')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment