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