From bea99b4334017a2db387fd6acfed1c30a63aee30 Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 2 May 2024 15:40:37 +0200 Subject: [PATCH] Update Dockerfile Signed-off-by: Zoey --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 352c297..61af8d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ RUN apk upgrade --no-cache -a && \ yarn global add clean-modules && \ git clone --recursive https://github.com/Chocobozzz/PeerTube --branch "$PT_VERSION" /app && \ sed -i "s|gosu|su-exec|g" /app/support/docker/production/entrypoint.sh && \ + chmod +x /app/support/docker/production/entrypoint.sh && \ if [ "$TARGETARCH" = "amd64" ]; then \ cd /app/client && \ npm_config_target_platform=linux npm_config_target_arch=x64 yarn install --pure-lockfile && \ @@ -33,14 +34,10 @@ FROM alpine:3.19.1 COPY --chown=1000:1000 --from=build /app /app WORKDIR /app -# Install dependencies RUN apk add --no-cache ca-certificates tzdata tini su-exec nodejs ffmpeg shadow && \ -# Add peertube user groupadd -r peertube && \ useradd -r -g peertube -m peertube && \ -# script, folder, permissions and cleanup mv -v /app/support/docker/production/entrypoint.sh /usr/local/bin/entrypoint.sh && \ - chmod +x /usr/local/bin/entrypoint.sh && \ mkdir /data /config && \ chown -R peertube:peertube /data /config && \ apk del --no-cache shadow