2
0
Fork 0

Run container as unprivileged user

This commit is contained in:
Luca 2022-04-26 17:28:53 +02:00
parent c08eaf6a2e
commit 6546439bf4
1 changed files with 5 additions and 0 deletions

View File

@ -1,7 +1,12 @@
FROM python:3.10-alpine3.15
RUN adduser -h /opt/shiftregister -D shiftregister
USER shiftregister
WORKDIR /opt/shiftregister
ENV PATH="$PATH:/opt/shiftregister/.local/bin"
RUN pip install --no-cache-dir gunicorn
COPY requirements.txt ./