Last active
July 17, 2016 22:47
-
-
Save porjo/bfc22ffc99dee32a6747f37c65381fc0 to your computer and use it in GitHub Desktop.
Tilemill Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Start the docker container as follows:
Where
/data/containers/tilemill/Documents
is the local directory to save Tilemill projects to. Tilemill runs with UID1000
soDocuments
should bechown 1000