From 674ab5d2884228f5996ab28d77147821fd4af257 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 24 Sep 2022 16:45:41 +0530 Subject: [PATCH] Copy init.sh to appropriate path --- Dockerfile.prod | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile.prod b/Dockerfile.prod index 45c9f34..e04db25 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -56,12 +56,15 @@ RUN pip install --no-cache /wheels/* # copy entrypoint.prod.sh COPY ./entrypoint.prod.sh . +COPY ./init.sh /init.sh RUN sed -i 's/\r$//g' $APP_HOME/entrypoint.prod.sh RUN chmod +x $APP_HOME/entrypoint.prod.sh # copy project COPY . $APP_HOME + + # chown all the files to the app user RUN chown -R app:app $APP_HOME