Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Ensure shell scripts always use LF line endings
*.sh text eol=lf
docker-entrypoint.sh text eol=lf

Copilot AI Dec 9, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is redundant as docker-entrypoint.sh is already covered by the *.sh pattern on line 2. Consider removing this duplicate entry.

Suggested change
docker-entrypoint.sh text eol=lf

Copilot uses AI. Check for mistakes.

# Python files
*.py text eol=lf

# Configuration files
*.yml text eol=lf
*.yaml text eol=lf
*.json text eol=lf
*.toml text eol=lf
*.ini text eol=lf

# Docker files
Dockerfile text eol=lf
*.dockerfile text eol=lf
.dockerignore text eol=lf

# Other text files
*.md text eol=lf
*.txt text eol=lf
Comment on lines +20 to +22

Copilot AI Dec 9, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .gitattributes file is missing patterns for JavaScript/TypeScript files (*.js, *.jsx, *.ts, .tsx) and CSS files (.css) which are present in the web directory. Consider adding these patterns with text eol=lf to ensure consistent line endings across the entire project.

Copilot uses AI. Check for mistakes.

# Binary files
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary

5 changes: 3 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ RUN useradd -m -u 1000 appuser

COPY . .

# Set ownership and permissions
RUN chown -R appuser:appuser /app && \
# Convert line endings (CRLF to LF) and set ownership/permissions
RUN sed -i 's/\r$//' /app/docker-entrypoint.sh && \
chown -R appuser:appuser /app && \
chmod +x /app/docker-entrypoint.sh

# Switch to non-root user
Expand Down