dockerfile 987 B

1234567891011121314151617181920212223242526272829303132
  1. FROM ubuntu:18.04
  2. MAINTAINER juca <juca@juan-carlos.info>
  3. ENV APP_NAME="tilemill"
  4. RUN export DEBIAN_FRONTEND=noninteractive \
  5. && apt-get update -y \
  6. && apt-get install -y --no-install-recommends apt-utils \
  7. && apt-get install -y locales && locale-gen en_US.UTF-8 \
  8. && apt-get install -y curl \
  9. && curl -sL https://deb.nodesource.com/setup_8.x | bash - \
  10. && apt-get update -y \
  11. && apt-get install -y nodejs git \
  12. && mkdir /opt/tilemill /root/Documents \
  13. && cd /opt/tilemill \
  14. && git clone https://github.com/tilemill-project/tilemill.git \
  15. && cd tilemill \
  16. && npm install \
  17. && npm cache clean --force \
  18. && apt-get clean \
  19. && apt-get update
  20. COPY run_tilemill.sh /opt/tilemill/run_tilemill.sh
  21. EXPOSE 20008
  22. EXPOSE 20009
  23. VOLUME /root/Documents
  24. WORKDIR /opt/tilemill
  25. CMD [ "/bin/bash", "/opt/tilemill/run_tilemill.sh" ]