Run as unprivileged user

This commit is contained in:
Alex Page 2023-03-09 17:50:31 -05:00
parent 3faa422b90
commit 863fcb0812

View file

@ -12,4 +12,6 @@ RUN apt-get update && apt-get --no-install-recommends install -y python3 python3
RUN python3 -m pip install -U pip setuptools wheel
RUN python3 -m pip install --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
COPY --from=builder /usr/local/cargo/bin/dj_kitty_cat /usr/local/bin/dj_kitty_cat
RUN useradd djkk
USER djkk
CMD ["dj_kitty_cat"]