From 4dd7b554989c6fe1bbed7091ea56feee813836ad Mon Sep 17 00:00:00 2001 From: Krrish Sehgal <133865424+krrish-sehgal@users.noreply.github.com> Date: Mon, 23 Dec 2024 18:56:32 +0530 Subject: [PATCH] test-6 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 33d245c3c..852336642 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,7 +66,8 @@ COPY . /blt # Convert line endings and set permissions RUN dos2unix Dockerfile docker-compose.yml entrypoint.sh ./blt/settings.py -RUN [ -f .env ] && dos2unix .env +# Check if .env exists and run dos2unix on it, otherwise skip +RUN if [ -f /blt/.env ]; then dos2unix /blt/.env; fi RUN chmod +x /blt/entrypoint.sh ENTRYPOINT ["/blt/entrypoint.sh"]