forked from TerriaJS/TerriaMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (15 loc) · 653 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Docker image for the primary terria map application server
FROM node:6
RUN apt-get update && apt-get install -y gdal-bin
RUN mkdir -p /usr/src/app && mkdir -p /etc/config/client
WORKDIR /usr/src/app
COPY . /usr/src/app
#RUN rm wwwroot/config.json && ln -s /etc/config/client/config.json wwwroot/config.json
# these two directories aren't being automatically copied when 'docker build' is run,
# so copying them manually
RUN tar -zxf varnish.tar.gz
RUN rm varnish.tar.gz
RUN tar -zxf node-modules.tar.gz
RUN rm node-modules.tar.gz
EXPOSE 3001
CMD [ "node", "./node_modules/terriajs-server/lib/app.js", "--config-file", "devserverconfig.json" ]