Skip to content

Commit e48cc3d

Browse files
committed
Build maplibre gl sprite from web_api
1 parent 54ca966 commit e48cc3d

File tree

8 files changed

+3261
-1639
lines changed

8 files changed

+3261
-1639
lines changed

docker/Dockerfile-api

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ RUN apt update && \
77
apt install -y --no-install-recommends \
88
bzip2 \
99
gettext \
10+
librsvg2-bin \
11+
npm \
1012
postgresql-client && \
1113
apt-get clean
1214

13-
ADD ./requirements.txt /data/project/osmose/frontend/requirements.txt
1415
WORKDIR /data/project/osmose/frontend
16+
ADD web_api/static/package.json web_api/static/package.json
17+
ADD web_api/static/package-lock.json web_api/static/package-lock.json
18+
RUN cd web_api/static && npm install && cd -
19+
ADD ./requirements.txt requirements.txt
1520
RUN pip install uvicorn && pip install -r requirements.txt
1621

1722
ADD . /data/project/osmose/frontend

docker/docker-compose-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ services:
55
environment:
66
- OSMOSE_UNLOCKED_UPDATE=on
77
- URL_FRONTEND=http://127.0.0.1:20009
8+
volumes:
9+
- type: bind
10+
source: ..
11+
target: /data/project/osmose/frontend

0 commit comments

Comments
 (0)