Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
refine Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba committed Feb 24, 2021
1 parent 0780edf commit a1bd782
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions peertube/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ RUN groupadd -r peertube \
&& useradd -r -g peertube -m peertube

# Install PeerTube
COPY ./src /app
RUN chown -R peertube:peertube /app

# Copy sources
COPY --chown=peertube:peertube ./src /app

# Build
WORKDIR /app
USER peertube

RUN yarn install --pure-lockfile \
&& npm run build -- $NPM_RUN_BUILD_OPTS \
&& rm -r ./node_modules ./client/node_modules \
Expand Down

0 comments on commit a1bd782

Please sign in to comment.