FROM python:3.10-alpine3.17 RUN apk add --no-cache git RUN adduser -h /home/shiftregister -D shiftregister USER shiftregister WORKDIR /home/shiftregister ENV PATH="$PATH:/home/shiftregister/.local/bin" COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt WORKDIR /opt/shiftregister EXPOSE 8000