FROM python:3.9.6-slim

ENV PYTHONUNBUFFERED=1 \
    PYTHONHASHSEED=0 \
    PIP_NO_CACHE_DIR=1

WORKDIR /workspace

COPY requirements.txt /tmp/requirements.txt

RUN pip install --no-cache-dir \
    --upgrade \
    pip \
    setuptools \
    wheel \
    && pip install --no-cache-dir \
    -r /tmp/requirements.txt

CMD ["bash"]
