2024-05-04 00:16:25 +02:00
|
|
|
FROM python:3.12-alpine3.19
|
2023-05-06 00:09:46 +02:00
|
|
|
|
|
|
|
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
|