diff --git a/{{cookiecutter.project_slug}}/compose/local/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/local/django/Dockerfile index e2e9e5f3c..679378223 100644 --- a/{{cookiecutter.project_slug}}/compose/local/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/local/django/Dockerfile @@ -20,23 +20,23 @@ COPY ./requirements /requirements RUN pip install -r /requirements/local.txt COPY ./compose/production/django/entrypoint /entrypoint -RUN sed -i 's/\r//' /entrypoint +RUN sed -i 's/\r$//g' /entrypoint RUN chmod +x /entrypoint COPY ./compose/local/django/start /start -RUN sed -i 's/\r//' /start +RUN sed -i 's/\r$//g' /start RUN chmod +x /start {% if cookiecutter.use_celery == "y" %} COPY ./compose/local/django/celery/worker/start /start-celeryworker -RUN sed -i 's/\r//' /start-celeryworker +RUN sed -i 's/\r$//g' /start-celeryworker RUN chmod +x /start-celeryworker COPY ./compose/local/django/celery/beat/start /start-celerybeat -RUN sed -i 's/\r//' /start-celerybeat +RUN sed -i 's/\r$//g' /start-celerybeat RUN chmod +x /start-celerybeat COPY ./compose/local/django/celery/flower/start /start-flower -RUN sed -i 's/\r//' /start-flower +RUN sed -i 's/\r$//g' /start-flower RUN chmod +x /start-flower {% endif %} WORKDIR /app diff --git a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile index 80b5bc2cf..37f66ec78 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile @@ -31,28 +31,28 @@ RUN pip install --no-cache-dir -r /requirements/production.txt \ && rm -rf /requirements COPY ./compose/production/django/entrypoint /entrypoint -RUN sed -i 's/\r//' /entrypoint +RUN sed -i 's/\r$//g' /entrypoint RUN chmod +x /entrypoint RUN chown django /entrypoint COPY ./compose/production/django/start /start -RUN sed -i 's/\r//' /start +RUN sed -i 's/\r$//g' /start RUN chmod +x /start RUN chown django /start {%- if cookiecutter.use_celery == "y" %} COPY ./compose/production/django/celery/worker/start /start-celeryworker -RUN sed -i 's/\r//' /start-celeryworker +RUN sed -i 's/\r$//g' /start-celeryworker RUN chmod +x /start-celeryworker RUN chown django /start-celeryworker COPY ./compose/production/django/celery/beat/start /start-celerybeat -RUN sed -i 's/\r//' /start-celerybeat +RUN sed -i 's/\r$//g' /start-celerybeat RUN chmod +x /start-celerybeat RUN chown django /start-celerybeat COPY ./compose/production/django/celery/flower/start /start-flower -RUN sed -i 's/\r//' /start-flower +RUN sed -i 's/\r$//g' /start-flower RUN chmod +x /start-flower {%- endif %}