Fix compose-based development setup

This commit is contained in:
David Straub
2024-02-11 16:58:19 +01:00
parent abd9be1e7a
commit 753b7c4311
2 changed files with 1 additions and 6 deletions

View File

@@ -7,11 +7,9 @@ COPY config.cfg /app/config/
ENV GRAMPS_RESOURCES /usr/share/
RUN cp -r /usr/share/doc/gramps/example/gramps/example.gramps.gz .
RUN gunzip example.gramps.gz
RUN gramps -C Example -i example.gramps --config=database.backend:sqlite --config=database.path:/app/.gramps/grampsdb
RUN gramps -C Example -i example.gramps --config=database.backend:sqlite --config=database.path:/root/.gramps/grampsdb
RUN rm -rf appcache
ENV HOME /app
# build full-text search index
RUN python3 -m gramps_webapi --config /app/config/config.cfg search index-full

View File

@@ -17,9 +17,6 @@ services:
build:
context: ./dev
dockerfile: Dockerfile.api
volumes:
- gramps_users:/app/users # persist user database
- gramps_db:/root/.gramps/grampsdb # persist Gramps database
gramps-frontend:
container_name: gramps-frontend-dev
build: