Run container as unprivileged user
This commit is contained in:
parent
c08eaf6a2e
commit
6546439bf4
|
@ -1,7 +1,12 @@
|
||||||
FROM python:3.10-alpine3.15
|
FROM python:3.10-alpine3.15
|
||||||
|
|
||||||
|
RUN adduser -h /opt/shiftregister -D shiftregister
|
||||||
|
|
||||||
|
USER shiftregister
|
||||||
WORKDIR /opt/shiftregister
|
WORKDIR /opt/shiftregister
|
||||||
|
|
||||||
|
ENV PATH="$PATH:/opt/shiftregister/.local/bin"
|
||||||
|
|
||||||
RUN pip install --no-cache-dir gunicorn
|
RUN pip install --no-cache-dir gunicorn
|
||||||
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
|
|
Loading…
Reference in New Issue