ARG PYTHON_VERSION="3.9.6-slim-buster" FROM python:${PYTHON_VERSION} RUN apt-get update \ && apt-get install -y --no-install-recommends \ wget=1.* \ netcat=1.* \ libpq-dev=11.* \ unixodbc-dev=2.* \ g++=4:* \ libssl-dev=1.* \ && apt-get clean WORKDIR /src COPY ./Pipfile* /src/ RUN pip install --upgrade pip \ && pip install pipenv \ && pipenv install --system --dev COPY tools/ /opt/bin/ ENTRYPOINT [ "/opt/bin/dev-django.sh" ]