Fix OMK build for recent versions
This commit is contained in:
parent
dfc3dafe37
commit
e7f8b365cd
@ -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 \
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user