fix: update Dockerfile to ensure users.csv is copied without error suppression

- Modified the Dockerfile to copy users.csv into the application directory without redirecting errors to /dev/null. This change ensures that any issues during the copy process are visible, aiding in debugging and validation of the file's existence.

This update improves the reliability of the Docker image setup by making the presence of users.csv explicit during the build process.
This commit is contained in:
Rohit Amarnath 2025-09-23 13:15:57 -04:00
parent 6f04b1449f
commit 9b40b1e31a

View file

@ -22,6 +22,6 @@ COPY packages/api/scripts/hash-password.js /usr/local/bin/hash-password.js
RUN chmod +x /usr/local/bin/hash-password.js
# Copy users.csv if it exists (optional file)
COPY packages/db/users.csv* /app/packages/db/ 2>/dev/null || true
COPY packages/db/users.csv* /app/packages/db/
CMD ["yarn", "workspace", "@omnivore/db", "migrate"]