Skip to content

Commit 56f65bb

Browse files
authored
Merge pull request #3484 from rommapp/claude/busy-keller-gd2Ue
Fix Docker volume mounts to enable hardlink optimization
2 parents 84d4bf1 + 21f60b6 commit 56f65bb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,9 @@ ENV PYTHONDONTWRITEBYTECODE=1
216216
ENV PYTHONUNBUFFERED=1
217217
ENV PYTHONPATH=/backend
218218

219-
# Declare the supported volumes
220-
VOLUME ["/romm/resources", "/romm/library", "/romm/assets", "/romm/config", "/romm/sync", "/redis-data"]
219+
# Declare only the parent `/romm`, not its subdirs, so Docker keeps them
220+
# on one mount (`st_dev`) and cross-directory `os.link()` hardlinks don't fail.
221+
VOLUME ["/romm", "/redis-data"]
221222

222223
# Expose non-privileged ports
223224
EXPOSE 8080 6379/tcp

0 commit comments

Comments
 (0)