Skip to content

Instantly share code, notes, and snippets.

@porjo
Last active July 17, 2016 22:47
Show Gist options
  • Save porjo/bfc22ffc99dee32a6747f37c65381fc0 to your computer and use it in GitHub Desktop.
Save porjo/bfc22ffc99dee32a6747f37c65381fc0 to your computer and use it in GitHub Desktop.
Tilemill Dockerfile
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install nodejs-legacy npm git libgtk2.0-dev libwebkitgtk-dev protobuf-compiler libprotobuf-dev libprotobuf-lite9v5
RUN git clone https://github.com/mapbox/tilemill.git
WORKDIR /tilemill
RUN npm install
RUN echo '{"server":true,"listenHost": "0.0.0.0"}' > /etc/tilemillconfig.json
RUN adduser --disabled-password --gecos "" tilemill
USER tilemill
CMD ./index.js --config=/etc/tilemillconfig.json
EXPOSE 20009
EXPOSE 20008
@porjo
Copy link
Author

porjo commented Jul 17, 2016

Start the docker container as follows:

docker run -d -p 20008:20008 -p 20009:20009 -v /data/containers/tilemill/Documents/:/home/tilemill/Documents --name tilemill tilemill

Where /data/containers/tilemill/Documents is the local directory to save Tilemill projects to. Tilemill runs with UID 1000 so Documents should be chown 1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment