Skip to content

Commit

Permalink
feat: add non root user (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
brpaz authored Apr 6, 2024
1 parent d5486ed commit 9ad2ab2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# Use Alpine base image with edge repository
FROM --platform=${BUILDPLATFORM} alpine:edge

ARG PGID=1000
ARG PUID=1000
ENV PGID=${PGID}
ENV PUID=${PUID}
ENV USER=app
ENV TZ="UTC"

# hadolint ignore=DL3018
RUN apk update && \
RUN addgroup -g ${PGID} ${USER} && \
adduser -D -u ${PUID} -G ${USER} ${USER} && \
apk update && \
apk add --no-cache curl bash ffmpeg yt-dlp && \
yt-dlp --version

USER app

ENTRYPOINT ["yt-dlp"]

0 comments on commit 9ad2ab2

Please sign in to comment.