mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-21 23:09:52 +00:00
run as non priveleged user in docker
This commit is contained in:
parent
fddbbf4c50
commit
95003803eb
@ -23,6 +23,9 @@ RUN apt-get update \
|
|||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
RUN useradd -Ms /bin/nologin user
|
||||||
|
USER user
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD [ "python3", "-u", "gronk.py", "--output-dir", "./web", "./notes" ]
|
CMD [ "python3", "-u", "gronk.py", "--output-dir", "./web", "./notes" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user