File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ COPY . .
2929# Create non-root user for security
3030RUN 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
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ FROM nginx:alpine
33# Install openssl for generating self-signed certificates
44RUN apk add --no-cache openssl
55
6- # Copy entrypoint script
6+ # Copy entrypoint script and fix line endings
77COPY 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
1111ENTRYPOINT ["/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments