Run as non-root user with correct perms
This commit is contained in:
parent
fd3ec019a8
commit
349d3fa425
1 changed files with 4 additions and 0 deletions
|
@ -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
|
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
|
RUN chmod 755 /usr/local/bin/yt-dlp
|
||||||
COPY --from=builder /usr/local/cargo/bin/dj_kitty_cat /usr/local/bin/dj_kitty_cat
|
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"]
|
CMD ["dj_kitty_cat"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue