Thanks, I'm not quite sure of what goes where..
Normally, there is only one Dockerfile. This file is used both for production building and for building dev-images. But I run the dev images via docker-compose which also mounts a local folder.
If my Dockerfile looks like this:
FROM jsreport/jsreport:2.6.0
COPY license-key.txt /app
COPY ./mounted/jsreport.config.json /app
COPY ./mounted/data /app/data
And my docker-compose looks like this:
jsreport:
build:
context: ../services/jsreport
environment:
- mode=development
expose:
- '5488'
ports:
- '5488:5488'
volumes:
- '../services/jsreport/mounted:/jsreport'
What template files will jsreport use while I'm in my local dev environment?
The static copy in /app/data inside the image?
Or the mounted folder on my local machine, i.e. mounted as /jsreport?
And now when I compare the files, I do wonder: How can jsreport find my mounted volume when its mounted as /jsreport? It seems that jsreport actually wants this volume to be /app/data