-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
43 lines (39 loc) · 1.69 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
39
40
41
42
43
# 3DCityDB Web Map Client Dockerfile ###########################################
# Official website https://www.3dcitydb.net
# GitHub https://github.com/3dcitydb/3dcitydb-web-map
###############################################################################
# Base image
ARG baseimage_tag='21-bookworm'
FROM "node:${baseimage_tag}"
# Maintainer ##################################################################
# Bruno Willenborg
# Chair of Geoinformatics
# Department of Civil, Geo and Environmental Engineering
# Technical University of Munich (TUM)
# MAINTAINER Bruno Willenborg, Chair of Geoinformatics, Technical University of Munich (TUM) <[email protected]>
# Setup 3DCityDB Web Map Client ###############################################
ARG webmapclient_version='v1.9.1'
RUN set -x \
&& BUILD_PACKAGES='ca-certificates git' \
&& apt-get update && apt-get install -y --no-install-recommends $BUILD_PACKAGES \
&& git clone -b "${webmapclient_version}" --depth 1 https://github.com/3dcitydb/3dcitydb-web-map.git /var/www \
&& cd /var/www \
&& rm -rf ./.git ./.gitignore ./LICENSE ./README.md ./build.xml \
./node_modules ./server.js $(ls -1 --ignore=ajax-loader.gif --ignore=favicon.png \
--ignore=GPS_off.png --ignore=GPS_on.png --ignore=GPS_on_ori.png --ignore=GPS_on_pos_ori.png \
./theme/img) \
&& mkdir -p /var/www/data \
&& apt-get purge -y --auto-remove $BUILD_PACKAGES \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/
COPY package.json ./
COPY html/* ./
COPY server.js ./
RUN set -x \
&& npm install --production
RUN set -x \
&& chown -R node:node /var/www/
USER node
EXPOSE 8000
CMD [ "node", "server.js", "--public"]