FROM debian:11 RUN apt-get update && apt-get install -y git curl libcurl4-openssl-dev build-essential vim libssl-dev python2 python-dev wget python3 python3-pip RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py && python2 get-pip.py RUN python2 -m pip install cqlsh RUN addgroup appgroup && \ adduser appuser && adduser appuser appgroup RUN mkdir /app /src ADD requirements.txt /src/ RUN CASS_DRIVER_BUILD_CONCURRENCY=4 pip3 install -r /src/requirements.txt WORKDIR /src ADD . /src RUN pip3 install /src/ WORKDIR /app