forked from HSLdevcom/hsl-map-server
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
38 lines (26 loc) · 1.15 KB
/
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
35
36
37
38
FROM node:6-stretch
MAINTAINER Reittiopas version: 0.1
ENV FONTSTACK_PASSWORD ""
ENV HSL_OTP_URL api.digitransit.fi/routing/v1/routers/hsl/index/graphql
ENV FINLAND_OTP_URL api.digitransit.fi/routing/v1/routers/finland/index/graphql
ENV WALTTI_OTP_URL api.digitransit.fi/routing/v1/routers/waltti/index/graphql
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