Skip to content

Commit 1f978aa

Browse files
committed
Fix entrypoint script execution in Dockerfile for dynamic .env creation
1 parent ae93b9c commit 1f978aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker/php/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ WORKDIR /app
4141

4242
# Added entrypoint script to support dynamic .env creation
4343
COPY docker/php/entrypoint.sh /entrypoint.sh
44-
RUN chmod +x /entrypoint.sh
44+
RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
4545

46-
ENTRYPOINT ["/entrypoint.sh"]
46+
ENTRYPOINT ["sh", "/entrypoint.sh"]
4747
CMD ["php-fpm"]

0 commit comments

Comments
 (0)