Remove VOLUME instruction from Dockerfile

VOLUME ["/data"] was causing Docker to create an anonymous volume for
/data that shadowed the bind mount defined in docker-compose.yml,
leaving the container with an empty /data instead of the host data.
The bind mount in docker-compose.yml is sufficient; no Dockerfile
VOLUME needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-07-21 10:33:20 -04:00
1 parent a35ba756ca
commit 13c00e9322
1 file changed
-1
-1
View File
@@ -13,6 +13,5 @@ COPY server.js ./
COPY --from=build /app/build ./build COPY --from=build /app/build ./build
ENV DATA_DIR=/data ENV DATA_DIR=/data
VOLUME ["/data"]
EXPOSE 4000 EXPOSE 4000
CMD ["node", "server.js"] CMD ["node", "server.js"]