Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored May 2, 2024
1 parent 444aa2c commit bea99b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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
Expand Down

0 comments on commit bea99b4

Please sign in to comment.