Skip to content

Issue with docker volume instruction from Dockerfile #74

@nitrique

Description

@nitrique

Hi,

I was building a docker image from this one using :

FROM dolibarr/dolibarr:21

COPY --chown=www-data:www-data merged-custom /var/www/html/custom

I copy merged-custom because It depends on 2 repositories, but this is not the point :).

My issue is that this line in Dockerfile: VOLUME /var/www/html/custom create an anonymous volume at first run, so when I update my container with newer image, the custom folder content is not updated (because it is replaced at run time by the anonymous volume).

Is there any chance that we can remove this line ? If we explicitelly specify de volume it will not be lost anyways.
It let the user decide if a volume is needed or not.

This is not the case of the document volume obviously.

Thanks,
Nicolas

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions