New node needs new npm folder

This commit is contained in:
Johannes Zellner 2023-06-21 17:07:26 +02:00
parent 7438ee6b80
commit 2e661e50f8
2 changed files with 3 additions and 2 deletions

View file

@ -31,7 +31,8 @@ RUN ln -sf /app/data/production.yaml /app/code/server/config/production.yaml &&
RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod +x /usr/local/bin/youtube-dl
# required when installing plugins/themes that use node-gyp
RUN rm -rf /home/cloudron/.cache && ln -s /run/peertube/cache /home/cloudron/.cache
RUN rm -rf /home/cloudron/.cache && ln -s /run/peertube/cache /home/cloudron/.cache && \
rm -rf /home/cloudron/.npm && ln -s /run/peertube/npm /home/cloudron/.npm
COPY production.yaml.example start.sh /app/pkg/

View file

@ -2,7 +2,7 @@
set -eu
mkdir -p /app/data/storage /run/peertube/cache /tmp/peertube
mkdir -p /app/data/storage /run/peertube/cache /run/peertube/npm /tmp/peertube
# do not rely on WORKDIR
cd /app/code/server