Frontend: Harden NPM usage and add version overrides to package.json

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2025-09-09 12:56:40 +02:00
parent 71f5bab407
commit 68d387778e
3 changed files with 10 additions and 2 deletions

View file

@ -1,6 +1,9 @@
# Ubuntu 25.04 (Plucky Puffin)
FROM photoprism/develop:250907-plucky
# Harden npm usage by default (applies to npm ci / install in dev container)
ENV NPM_CONFIG_IGNORE_SCRIPTS=true
## Alternative Environments:
# FROM photoprism/develop:armv7 # ARMv7 (32bit)
# FROM photoprism/develop:plucky # Ubuntu 25.04 (Plucky Puffin)
@ -21,4 +24,4 @@ WORKDIR "/go/src/github.com/photoprism/photoprism"
COPY . .
COPY --chown=root:root /scripts/dist/ /scripts/
RUN sudo /scripts/install-yt-dlp.sh
RUN sudo /scripts/install-yt-dlp.sh