Terralego/django-geostore

View on GitHub
Dockerfile

Summary

Maintainability
Test Coverage
FROM makinacorpus/geodjango:bionic-3.8

RUN mkdir -p /code/src

RUN useradd -ms /bin/bash django
RUN chown -R django:django /code
COPY entrypoint.sh /usr/local/bin/entrypoint.sh

USER django

RUN python3.8 -m venv /code/venv
RUN  /code/venv/bin/pip install --no-cache-dir pip setuptools wheel -U

COPY . /code/src
WORKDIR /code/src

# Install dev requirements
RUN /code/venv/bin/pip3 install --no-cache-dir -e .[dev] -U

ENTRYPOINT ["/bin/sh", "-e", "/usr/local/bin/entrypoint.sh"]