forked from transportkollektiv/hsl-map-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (23 loc) · 939 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM node:10-stretch
MAINTAINER Reittiopas version: 0.1
#ENV OTP_URL ""
ENV WORK=/opt/hsl-map-server
ENV NODE_OPTS ""
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y git unzip pngquant libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-video-dummy libgles2-mesa libstdc++6
RUN mkdir -p ${WORK}
WORKDIR ${WORK}
COPY yarn.lock ${WORK}
COPY package.json ${WORK}
RUN yarn install
COPY . ${WORK}
#TODO: Replace when https://github.com/osm2vectortiles/osm2vectortiles/issues/114 is fixed
#RUN curl http://koti.kapsi.fi/~hannes/tiles.v7.mbtiles > finland.mbtiles
#RUN curl https://osm2vectortiles-downloads.os.zhdk.cloud.switch.ch/v2.0/extracts/finland.mbtiles > finland.mbtiles
#RUN curl https://hsltiles.blob.core.windows.net/tiles/tiles.mbtiles > finland.mbtiles
EXPOSE 8080
RUN chmod -R 777 ${WORK}
RUN mkdir /.forever && chmod -R 777 /.forever
#USER 9999
ADD run.sh /usr/local/bin/
CMD /usr/local/bin/run.sh