Run as non-root user with correct perms

This commit is contained in:
Alex Page 2023-03-23 00:12:12 -04:00
parent fd3ec019a8
commit 349d3fa425

View file

@ -15,4 +15,8 @@ RUN apt-get update && apt-get --no-install-recommends install -y \
ADD https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/latest/download/yt-dlp_linux /usr/local/bin/yt-dlp
RUN chmod 755 /usr/local/bin/yt-dlp
COPY --from=builder /usr/local/cargo/bin/dj_kitty_cat /usr/local/bin/dj_kitty_cat
RUN useradd djkk
WORKDIR /opt
RUN chown djkk:djkk /opt
USER djkk
CMD ["dj_kitty_cat"]