run as non priveleged user in docker

This commit is contained in:
Akbar Rahman 2024-01-02 18:28:35 +00:00
parent fddbbf4c50
commit 95003803eb
Signed by: alvierahman90
GPG Key ID: 6217899F07CA2BDF

View File

@ -23,6 +23,9 @@ RUN apt-get update \
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN useradd -Ms /bin/nologin user
USER user
COPY . .
CMD [ "python3", "-u", "gronk.py", "--output-dir", "./web", "./notes" ]