Fix OMK build for recent versions

This commit is contained in:
Disassembler 2018-09-03 16:00:39 +02:00
parent dfc3dafe37
commit e7f8b365cd
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 6 additions and 4 deletions

View File

@ -11,15 +11,17 @@ RUN \
RUN \
# Install build dependencies
apk --no-cache add --virtual .deps build-base git npm py2-pip \
apk --no-cache add --virtual .deps build-base git py2-pip yarn \
# Clone OpenMapKit
&& git clone --depth 1 https://github.com/posm/OpenMapKitServer /srv/openmapkit \
&& cd /srv/openmapkit \
&& git submodule update --init \
# Install OpenMapKit dependencies
&& pip install -r requirements.txt \
&& npm install libxmljs \
&& npm install \
&& yarn \
&& cd frontend \
&& yarn \
&& yarn build \
# Create OS user
&& addgroup -S -g 8007 omk \
&& adduser -S -u 8007 -h /srv/openmapkit -s /bin/false -g omk -G omk omk \

View File

@ -3,7 +3,7 @@ module.exports = {
description: 'OpenMapKit Server is the lightweight server component of OpenMapKit that handles the collection and aggregation of OpenStreetMap and OpenDataKit data.',
port: 8080,
dataDir: __dirname + '/data',
pagesDir: __dirname + '/pages',
pagesDir: __dirname + '/frontend/build',
hostUrl: 'http://posm.io',
osmApi: {
server: 'http://osm.posm.io',