mirror of
https://github.com/maptiler/tileserver-gl.git
synced 2024-11-04 02:17:42 +03:00
30 lines
612 B
Docker
30 lines
612 B
Docker
FROM node:6.15.1-stretch
|
|
MAINTAINER Petr Sloup <petr.sloup@klokantech.com>
|
|
|
|
ENV NODE_ENV="production"
|
|
VOLUME /data
|
|
WORKDIR /data
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/bin/bash", "/usr/src/app/run.sh"]
|
|
|
|
RUN apt-get -qq update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
|
apt-transport-https \
|
|
curl \
|
|
unzip \
|
|
build-essential \
|
|
python \
|
|
libcairo2-dev \
|
|
libgles2-mesa-dev \
|
|
libgbm-dev \
|
|
libllvm3.9 \
|
|
libprotobuf-dev \
|
|
libxxf86vm-dev \
|
|
xvfb \
|
|
x11-utils \
|
|
&& apt-get clean
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
COPY / /usr/src/app
|
|
RUN cd /usr/src/app && npm install --production
|