mirror of
https://git.cloudron.io/cloudron/peertube-app.git
synced 2024-11-21 17:11:09 +00:00
New node needs new npm folder
This commit is contained in:
parent
7438ee6b80
commit
2e661e50f8
2 changed files with 3 additions and 2 deletions
|
@ -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/
|
||||
|
||||
|
|
2
start.sh
2
start.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue