Fixed long docker startup time by optimizing chown use

This commit is contained in:
Beau Harrison
2022-11-17 08:16:24 +10:00
parent 9c0a77cb6e
commit 142d708ee3
2 changed files with 2 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ COPY --chown=$UID:$GID --from=ffmpeg [ "/usr/local/bin/ffmpeg", "/usr/local/bin/
COPY --chown=$UID:$GID --from=ffmpeg [ "/usr/local/bin/ffprobe", "/usr/local/bin/ffprobe" ]
COPY --chown=$UID:$GID --from=backend ["/app/","/app/"]
COPY --chown=$UID:$GID --from=frontend [ "/build/backend/public/", "/app/public/" ]
RUN chown $UID:$GID .
RUN chmod +x /app/fix-scripts/*.sh
# Add some persistence data
#VOLUME ["/app/appdata"]