Skip to content

Instantly share code, notes, and snippets.

@senderle
Created October 18, 2019 00:07
Show Gist options
  • Save senderle/20fd0007d104af2e360b2440278e89e8 to your computer and use it in GitHub Desktop.
Save senderle/20fd0007d104af2e360b2440278e89e8 to your computer and use it in GitHub Desktop.
FROM senderle/pystgis:django-base
# Requirements are installed here to ensure they will be cached.
COPY ./requirements /requirements
RUN pip install -r /requirements/local.txt
COPY ./compose/production/django/entrypoint /entrypoint
RUN sed -i 's/\r$//g' /entrypoint
RUN chmod +x /entrypoint
COPY ./compose/local/django/start /start
RUN sed -i 's/\r$//g' /start
RUN chmod +x /start
COPY ./compose/local/django/celery/worker/start /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$//g' /start-celerybeat
RUN chmod +x /start-celerybeat
COPY ./compose/local/django/celery/flower/start /start-flower
RUN sed -i 's/\r$//g' /start-flower
RUN chmod +x /start-flower
WORKDIR /app
ENTRYPOINT ["/entrypoint"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment