Skip to content

Commit 87c4c81

Browse files
committed
Fix line endings
1 parent 00f7858 commit 87c4c81

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

server/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ COPY . .
2929
# Create non-root user for security
3030
RUN useradd --create-home --shell /bin/bash app
3131

32-
# Make startup script executable and set ownership and permissions
33-
RUN chmod +x startup.sh \
32+
# Fix line endings and make startup script executable
33+
RUN sed -i 's/\r$//' startup.sh \
34+
&& chmod +x startup.sh \
3435
&& chmod -R u+w /app \
3536
&& chown -R app:app /app
3637

server/Dockerfile.nginx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ FROM nginx:alpine
33
# Install openssl for generating self-signed certificates
44
RUN apk add --no-cache openssl
55

6-
# Copy entrypoint script
6+
# Copy entrypoint script and fix line endings
77
COPY entrypoint.sh /entrypoint.sh
8-
RUN chmod +x /entrypoint.sh
8+
RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
99

1010
# Set entrypoint
1111
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)